SPIRV-Cross/reference/shaders/desktop-only/frag/image-size.no-qualifier-deduction.frag

13 lines
250 B
GLSL
Raw Normal View History

#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)));
}