bgfx/3rdparty/glsl-optimizer/tests/fragment/texSize-inES3.txt
2016-10-31 19:11:19 -07:00

8 lines
211 B
Plaintext

#version 300 es
uniform highp sampler2D map;
layout ( location = 0 ) out mediump vec4 out_color;
void main () {
vec2 map_size = vec2(textureSize(map, 0));
out_color = vec4(map_size.x, map_size.y, 0.0, 0.0);
}