SPIRV-Cross/reference/shaders-hlsl-no-opt/comp/intmin-literal.comp
Hans-Kristian Arntzen f72bb3c6f5 Improve handling of INT_MIN/INT64_MIN literals.
We cannot naively convert these to decimal literals. C/C++ (and thus
MSL) has extremely awkward literal promotion rules.
2021-09-30 16:29:30 +02:00

20 lines
308 B
Plaintext

static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
RWByteAddressBuffer _9 : register(u1);
cbuffer UBO : register(b0)
{
float _14_b : packoffset(c0);
};
void comp_main()
{
_9.Store(0, asuint(asfloat(asint(_14_b) ^ int(0x80000000))));
}
[numthreads(1, 1, 1)]
void main()
{
comp_main();
}