SPIRV-Cross/shaders-hlsl/frag/texture-size-combined-image-sampler.frag
2018-02-01 09:22:16 +01:00

10 lines
230 B
GLSL

#version 450
layout(set = 0, binding = 0) uniform texture2D uTex;
layout(set = 0, binding = 1) uniform sampler uSampler;
layout(location = 0) out ivec2 FooOut;
void main()
{
FooOut = textureSize(sampler2D(uTex, uSampler), 0);
}