Open Dynamitos opened 5 days ago
You can use ULL
suffix on the literals for now to workaround this bug.
Note: the problem is that slang is incorrectly treating all int literals without suffix as signed 32-bit int. This is inconsistent with most other languages, where hexadecimal literals are always treated as unsigned int. Slang should do the same here.
That is unexpected, thanks for the info
I have found a very perplexing problem, which occurs when declaring a 64 bit global array as a bitmask.
This produces the following GLSL code:
In the GLSL output, the array has replaced the 32 bit masks with 64 bit masks. The problem persits when compiling with
emit-spirv-directly
and decompiling withspriv-cross