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

15 lines
269 B
Plaintext
Raw Normal View History

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