Closed ghost closed 7 years ago
It seems that neither countbits
in HLSL nor bitCount
in GLSL support uint64, so what exactly is the issue?
I mean, the functions look pretty much identical for me.
Problem that countbits
is missing in compiler.
Thanks for the hint, the mapping for countbits
was indeed empty in the GLSL backend.
Fixed it with 5f7bea6.
I also found issue with latest GLSL. I found issue with a counting of bits. This function just skipping. Also need means, that uint64 does not support directly
bitCount
in GLSL, but can be calculated by unpacking and count bits from vector components.https://msdn.microsoft.com/en-us/library/windows/desktop/ff471355(v=vs.85).aspx --> https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/bitCount.xhtml