SPIRV-Cross/reference/opt/shaders/comp/rmw-opt.comp
2018-03-12 15:11:55 +01:00

24 lines
344 B
Plaintext

#version 310 es
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 0, std430) buffer SSBO
{
int a;
} _9;
void main()
{
_9.a += 10;
_9.a -= 10;
_9.a *= 10;
_9.a /= 10;
_9.a = _9.a << 2;
_9.a = _9.a >> 3;
_9.a &= 40;
_9.a ^= 10;
_9.a %= 40;
_9.a |= 1;
_9.a = 0;
}