1 # Simple read-only test of SSBOs.
6 GL_ARB_shader_storage_buffer_object
8 [vertex shader passthrough]
12 #extension GL_ARB_shader_storage_buffer_object: require
14 layout(binding = 0) buffer ssbo_color { vec4 color; float color_scale; };
19 outcolor = color * color_scale;
24 ssbo 0 subdata float 0 1.0
25 ssbo 0 subdata float 4 2.0
26 ssbo 0 subdata float 12 0.8
27 ssbo 0 subdata float 16 0.5
29 clear color 1.0 0.0 0.0 1.0
33 probe all rgba 0.5 1.0 0.0 0.4