f72bb3c6f5
We cannot naively convert these to decimal literals. C/C++ (and thus MSL) has extremely awkward literal promotion rules.
19 lines
227 B
Plaintext
19 lines
227 B
Plaintext
#version 450
|
|
|
|
layout(local_size_x = 1) in;
|
|
|
|
layout(set = 0, binding = 1) buffer SSBO
|
|
{
|
|
float a;
|
|
};
|
|
|
|
layout(set = 0, binding = 0) uniform UBO
|
|
{
|
|
float b;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
a = intBitsToFloat(floatBitsToInt(b) ^ 0x80000000);
|
|
}
|