3 layout(binding = 0, r32f) uniform coherent image1D i1D;
\r
4 layout(binding = 1, r32f) uniform volatile image2D i2D;
\r
5 layout(binding = 2, r32f) uniform restrict image2DRect i2DRect;
\r
6 layout(binding = 3, r32f) uniform readonly image3D i3D;
\r
7 layout(binding = 3, r32f) uniform writeonly imageCube iCube;
\r
15 coherent buffer Buffer
\r
27 vec4 texel = imageLoad(i1D, 1);
\r
28 texel += imageLoad(i2D, ivec2(1));
\r
29 texel += imageLoad(i2DRect, ivec2(1));
\r
30 texel += imageLoad(i3D, ivec3(1));
\r
31 imageStore(iCube, ivec3(1), texel);
\r
36 texel.w += data.f1 + data.f2[1];
\r