1 # Normally, uniform array variables are initialized by array literals.
3 # However, samplers are different. Consider a declaration such as:
5 # layout(binding = 5) uniform sampler2D[3];
7 # The initializer value is a single integer (5), while the storage has 3
8 # array elements. The proper behavior is to increment one for each
9 # element; they should be initialized to 5, 6, and 7.
13 GL_ARB_arrays_of_arrays
14 GL_ARB_shading_language_420pack
17 #extension GL_ARB_arrays_of_arrays: enable
18 in vec4 piglit_vertex;
23 gl_Position = piglit_vertex;
24 texcoords = (piglit_vertex + 1.0) / 2.0;
28 #extension GL_ARB_arrays_of_arrays: enable
29 #extension GL_ARB_shading_language_420pack: enable
31 layout(binding = 0) uniform sampler2D tex[2][2][2];
38 color = texture2D(tex[0][1][1], texcoords.xy);
42 clear color 0.2 0.2 0.2 0.2
47 relative probe rgb (0.25, 0.25) (1.0, 0.0, 0.0)
48 relative probe rgb (0.75, 0.25) (0.0, 1.0, 0.0)
49 relative probe rgb (0.25, 0.75) (0.0, 0.0, 1.0)
50 relative probe rgb (0.75, 0.75) (1.0, 1.0, 1.0)