1 # Verify simple reading of a uniform and output to an image
7 GL_ARB_shader_image_load_store
11 #extension GL_ARB_compute_shader: enable
12 #extension GL_ARB_shader_image_load_store: enable
15 writeonly uniform image2D tex;
17 layout(local_size_x = 16, local_size_y = 16) in;
21 ivec2 coord = ivec2(gl_GlobalInvocationID.xy);
22 imageStore(tex, coord, color);
27 texture rgbw 0 (16, 16) GL_RGBA8
28 image texture 0 GL_RGBA8
31 uniform vec4 color 1.0 0.0 0.0 0.0
33 probe all rgba 1.0 0.0 0.0 0.0
35 uniform vec4 color 0.0 1.0 0.0 0.0
37 probe all rgba 0.0 1.0 0.0 0.0