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

13 lines
288 B
GLSL

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