Add support for 64bit integer types and 64bit integer vector types to bitCount() builtin.

Fixes #2630
This commit is contained in:
Panagiotis Christopoulos Charitos
2021-05-03 14:26:11 +02:00
parent 56b17b2f2d
commit 6113723e40
3 changed files with 95 additions and 63 deletions

View File

@@ -228,6 +228,14 @@ void builtinFuncs()
// notEqual()
bv = notEqual(u64v, u64vec3(u64));
bv.xy = notEqual(i64v, i64vec2(i64));
// findLSB()
i64 = findLSB(u64);
i64v = findLSB(u64vec2(u64));
// bitCount()
i64 = bitCount(u64);
i64v = bitCount(u64vec2(u64));
}
// Type conversion for specialization constant