1 # This test verifies that dynamically uniform indexing of UBO arrays
2 # in the fragment shader behaves correctly, when the block member is a
3 # nonconst-indexed array.
8 GL_ARB_arrays_of_arrays
10 [vertex shader passthrough]
14 #extension GL_ARB_gpu_shader5: require
15 #extension GL_ARB_arrays_of_arrays: require
28 color = arr[n][1].color[m];
32 clear color 0.2 0.2 0.2 0.2
36 uniform vec4 block.color[0] 1.0 0.0 0.0 0.0
37 uniform vec4 block.color[1] 0.0 1.0 1.0 0.0
39 uniform vec4 block.color[0] 0.0 1.0 1.0 0.0
40 uniform vec4 block.color[1] 0.0 1.0 0.0 0.0
42 uniform vec4 block.color[0] 0.0 0.0 1.0 0.0
43 uniform vec4 block.color[1] 1.0 1.0 1.0 0.0
49 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0.0, 0.0)
55 relative probe rect rgb (0.5, 0.0, 0.5, 0.5) (0.0, 1.0, 0.0)
61 relative probe rect rgb (0.0, 0.5, 0.5, 0.5) (0.0, 0.0, 1.0)
67 relative probe rect rgb (0.5, 0.5, 0.5, 0.5) (1.0, 1.0, 1.0)