1 # This test verifies that dynamically uniform indexing of sampler arrays
2 # in the fragment shader behaves correctly.
7 GL_ARB_arrays_of_arrays
9 [vertex shader passthrough]
13 #extension GL_ARB_gpu_shader5: require
14 #extension GL_ARB_arrays_of_arrays: enable
16 uniform sampler2D s[2][2];
25 color = texture(s[n][m], vec2(0.75, 0.25));
29 clear color 0.2 0.2 0.2 0.2
37 texture checkerboard 0 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 0.0, 0.0, 0.0)
38 texparameter 2D min nearest
39 texparameter 2D mag nearest
41 texture checkerboard 1 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (0.0, 1.0, 0.0, 0.0)
42 texparameter 2D min nearest
43 texparameter 2D mag nearest
45 texture checkerboard 2 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (0.0, 0.0, 1.0, 0.0)
46 texparameter 2D min nearest
47 texparameter 2D mag nearest
49 texture checkerboard 3 0 (32, 32) (0.5, 0.0, 0.0, 0.0) (1.0, 1.0, 1.0, 1.0)
50 texparameter 2D min nearest
51 texparameter 2D mag nearest
57 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0.0, 0.0)
63 relative probe rect rgb (0.5, 0.0, 0.5, 0.5) (0.0, 1.0, 0.0)
69 relative probe rect rgb (0.0, 0.5, 0.5, 0.5) (0.0, 0.0, 1.0)
75 relative probe rect rgb (0.5, 0.5, 0.5, 0.5) (1.0, 1.0, 1.0)