2018-09-27 01:06:05 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(constant_id = 0) const int arraySize = 3;
|
|
|
|
|
|
|
|
layout(binding = 0, rgba32i) uniform iimage2D images[arraySize];
|
2019-01-30 15:26:41 +00:00
|
|
|
|
|
|
|
layout(binding = 4) uniform constant_block
|
2018-09-27 01:06:05 +00:00
|
|
|
{
|
|
|
|
vec4 foo;
|
|
|
|
int bar;
|
|
|
|
} constants[4];
|
2019-01-30 15:26:41 +00:00
|
|
|
|
|
|
|
layout(binding = 8) buffer storage_block
|
2018-09-27 01:06:05 +00:00
|
|
|
{
|
|
|
|
uvec4 baz;
|
|
|
|
ivec2 quux;
|
|
|
|
} storage[2];
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
storage[0].baz = uvec4(constants[3].foo);
|
|
|
|
storage[1].quux = imageLoad(images[2], ivec2(constants[1].bar)).xy;
|
|
|
|
}
|