SPIRV-Cross/reference/shaders/desktop-only/frag/image-size.no-qualifier-deduction.frag
2020-03-04 16:42:31 +01:00

13 lines
250 B
GLSL

#version 450
layout(binding = 0, r32f) uniform image2D uImage1;
layout(binding = 1, r32f) uniform image2D uImage2;
layout(location = 0) out vec4 FragColor;
void main()
{
FragColor = vec4(vec2(imageSize(uImage1)), vec2(imageSize(uImage2)));
}