SPIRV-Cross/reference/shaders/asm/frag/image-extract-reuse.asm.frag

12 lines
182 B
GLSL
Raw Normal View History

2018-04-27 09:10:10 +00:00
#version 450
layout(binding = 0) uniform sampler2D uTexture;
layout(location = 0) out ivec2 Size;
void main()
{
Size = textureSize(uTexture, 0) + textureSize(uTexture, 1);
}