Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/comp/coherent-image.comp

raw
1 #version 310 es
2 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
3
4 layout(binding = 1, std430) coherent restrict writeonly buffer SSBO
5 {
6 ivec4 value;
7 } _10;
8
9 layout(binding = 3, r32i) uniform coherent restrict readonly mediump iimage2D uImage;
10
11 void main()
12 {
13 _10.value = imageLoad(uImage, ivec2(10));
14 }
15