1 # This test verifies that dynamically uniform indexing of sampler arrays
2 # in the vertex shader behaves correctly, and the offests for the
3 # non-opaque members are calculated correctly.
7 GL_ARB_arrays_of_arrays
12 #extension GL_ARB_arrays_of_arrays: enable
13 #extension GL_ARB_gpu_shader5: require
27 in vec4 piglit_vertex;
32 gl_Position = piglit_vertex;
33 vec4 texcolor = texture(s[n][m].tex, vec2(0.75, 0.25));
34 color = vec4(s[n][m].a, s[n][m].b, s[n][m].c, texcolor.x);
39 #extension GL_ARB_gpu_shader5: require
50 clear color 0.2 0.2 0.2 0.2
53 uniform int s[1][0].tex 3
54 uniform float s[1][0].a 0.25
55 uniform float s[1][0].b 0.5
56 uniform float s[1][0].c 0.75
59 texture checkerboard 3 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 0.0, 0.0, 0.0)
60 texparameter 2D min nearest
61 texparameter 2D mag nearest
67 relative probe rect rgba (0.0, 0.0, 0.5, 0.5) (0.25, 0.5, 0.75, 1.0)