4 // require_extensions: GL_MESA_shader_integer_functions
7 // Test implicit conversions from MESA_shader_integer_functions in function parameter handling.
11 #extension GL_MESA_shader_integer_functions : enable
14 ivec2 _ivec2 = ivec2(0);
15 ivec3 _ivec3 = ivec3(0);
16 ivec4 _ivec4 = ivec4(0);
19 uvec2 _uvec2 = uvec2(0u);
20 uvec3 _uvec3 = uvec3(0u);
21 uvec4 _uvec4 = uvec4(0u);
24 vec2 _vec2 = vec2(0.0f);
25 vec3 _vec3 = vec3(0.0f);
26 vec4 _vec4 = vec4(0.0f);
29 void f_uint(uint x) {}
30 void f_uvec2(uvec2 x) {}
31 void f_uvec3(uvec3 x) {}
32 void f_uvec4(uvec4 x) {}
34 void f_float(float x) {}
35 void f_vec2(vec2 x) {}
36 void f_vec3(vec3 x) {}
37 void f_vec4(vec4 x) {}
42 /* int can be converted to uint and to float (and for vectors of same) */
55 /* uint can be converted to float (and for vectors of same) */