1 # Tests (dynamically uniform) indirect indexing of SSBOs.
6 GL_ARB_shader_storage_buffer_object
13 in vec4 piglit_vertex;
18 gl_Position = piglit_vertex;
23 #extension GL_ARB_gpu_shader5: require
24 #extension GL_ARB_shader_storage_buffer_object: require
26 layout(binding = 0) buffer Data {
36 outcolor = data[idx].color * data[idx].color_scale;
37 data[idx].val = idx + 1;
42 ssbo 0 subdata float 0 1.0
43 ssbo 0 subdata float 4 2.0
44 ssbo 0 subdata float 12 2.0
45 ssbo 0 subdata float 16 0.5
46 ssbo 0 subdata int 20 1000
49 ssbo 1 subdata float 0 1.0
50 ssbo 1 subdata float 4 2.0
51 ssbo 1 subdata float 12 4.0
52 ssbo 1 subdata float 16 0.25
54 clear color 1.0 0.0 0.0 1.0
60 probe all rgba 0.5 1.0 0.0 1.0
61 probe ssbo uint 0 20 == 1
66 probe all rgba 0.25 0.5 0.0 1.0
67 probe ssbo uint 1 20 == 2