3 #pragma MSP stage(vertex)
4 layout(location=0) in vec4 vertex;
5 layout(location=1) in vec2 texcoord;
12 #pragma MSP stage(fragment)
13 layout(location=0) out float result;
16 float value = texture(tex, texcoord).r;
18 for(pot=0; pot<value; pot*=2) { }
22 /* Expected output: vertex
23 layout(location=0) in vec4 vertex;
24 layout(location=1) in vec2 texcoord;
25 layout(location=0) out vec2 _vs_out_texcoord;
29 _vs_out_texcoord = texcoord;
33 /* Expected output: fragment
34 layout(location=0, binding=71) uniform sampler2D tex;
35 layout(location=0) out float result;
36 layout(location=0) in vec2 _vs_out_texcoord;
39 float value = texture(tex, _vs_out_texcoord).r;
41 for(pot = 0.0; pot<value; pot *= 2.0) { }