SPIRV-Cross/reference/shaders/comp/coherent-image.comp

16 lines
327 B
Plaintext
Raw Normal View History

2017-08-29 13:52:59 +00:00
#version 310 es
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 1, std430) coherent restrict writeonly buffer SSBO
{
ivec4 value;
} _10;
2017-08-29 13:54:22 +00:00
layout(binding = 3, r32i) uniform coherent restrict readonly mediump iimage2D uImage;
2017-08-29 13:52:59 +00:00
void main()
{
_10.value = imageLoad(uImage, ivec2(10));
}