SPIRV-Cross/reference/shaders/asm/comp/op-phi-swap.asm.comp
2019-01-07 14:24:07 +01:00

41 lines
654 B
Plaintext

#version 450
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 0, std430) buffer _3_4
{
float _m0[];
} _4;
layout(binding = 1, std430) buffer _3_5
{
float _m0[];
} _5;
void main()
{
float _26 = 8.5;
bool _34;
float _35;
float _35_copy;
float _36;
_34 = true;
_35 = _4._m0[gl_GlobalInvocationID.x];
_36 = _26;
for (;;)
{
if (_34)
{
_34 = false;
_35_copy = _35;
_35 = _36;
_36 = _35_copy;
}
else
{
break;
}
}
_5._m0[gl_GlobalInvocationID.x] = _35 - _36;
}