X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Ffunction_overloading.glsl;h=a44c00d4459fe1bce58e4fb680b46bed03315507;hb=3e38e8a7bfffb0b6d622b849b402f4f04a7536c4;hp=e5561705fca8265eb4b205008984a50fbe972032;hpb=6142f469eb17c06a432fde663c36a0567985d986;p=libs%2Fgl.git diff --git a/tests/glsl/function_overloading.glsl b/tests/glsl/function_overloading.glsl index e5561705..a44c00d4 100644 --- a/tests/glsl/function_overloading.glsl +++ b/tests/glsl/function_overloading.glsl @@ -30,10 +30,10 @@ void main() } /* Expected output: vertex -uniform mat4 mvp; +layout(location=0) uniform mat4 mvp; layout(location=0) in vec4 position; layout(location=1) in vec2 texcoord; -out vec2 _vs_out_texcoord; +layout(location=0) out vec2 _vs_out_texcoord; void main() { _vs_out_texcoord = texcoord; @@ -42,13 +42,13 @@ void main() */ /* Expected output: fragment -uniform sampler2D tex; +layout(location=4, binding=71) uniform sampler2D tex; layout(location=0) out vec4 frag_color; -in vec2 _vs_out_texcoord; +layout(location=0) in vec2 _vs_out_texcoord; void main() { vec4 color = texture(tex, _vs_out_texcoord); - vec3 _srgb_to_linear_color = color.rgb; - frag_color = vec4(mix(_srgb_to_linear_color/12.92, pow((_srgb_to_linear_color+0.055)/1.055, vec3(2.4)), lessThan(_srgb_to_linear_color, vec3(0.04045))), color.a); + vec3 color_1 = color.rgb; + frag_color = vec4(mix(color_1/12.92, pow((color_1+0.055)/1.055, vec3(2.4)), lessThan(color_1, vec3(0.04045))), color.a); } */