mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 09:32:58 +00:00
5af5222249
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
28 lines
296 B
Plaintext
28 lines
296 B
Plaintext
#version 310 es
|
|
layout(local_size_x = 1) in;
|
|
|
|
layout(std430, binding = 0) buffer SSBO
|
|
{
|
|
int a;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
a += 10;
|
|
a -= 10;
|
|
a *= 10;
|
|
a /= 10;
|
|
a <<= 2;
|
|
a >>= 3;
|
|
a &= 40;
|
|
a ^= 10;
|
|
a %= 40;
|
|
a |= 1;
|
|
|
|
bool c = false;
|
|
bool d = true;
|
|
c = c && d;
|
|
d = d || c;
|
|
a = c && d ? 1 : 0;
|
|
}
|