1 # Tests (dynamically uniform) indirect indexing of SSBOs.
6 GL_ARB_shader_storage_buffer_object
12 in vec4 piglit_vertex;
17 gl_Position = piglit_vertex;
22 #extension GL_ARB_gpu_shader5: require
23 #extension GL_ARB_shader_storage_buffer_object: require
25 layout(binding = 0) buffer Data {
34 outcolor = data[idx].color * data[idx].color_scale;
39 ssbo 0 subdata float 0 1.0
40 ssbo 0 subdata float 4 2.0
41 ssbo 0 subdata float 12 2.0
42 ssbo 0 subdata float 16 0.5
45 ssbo 1 subdata float 0 1.0
46 ssbo 1 subdata float 4 2.0
47 ssbo 1 subdata float 12 4.0
48 ssbo 1 subdata float 16 0.25
50 clear color 1.0 0.0 0.0 1.0
56 probe all rgba 0.5 1.0 0.0 1.0
61 probe all rgba 0.25 0.5 0.0 1.0