Debian Codegraph @

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

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