ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_shader_storage_buffer_object / compiler / layout-std430-non-shader-storage.frag
blob309a18f5f656cdc4be717f740f0249a96047401f
1 // [config]
2 // expect_result: fail
3 // glsl_version: 1.20
4 // require_extensions: GL_ARB_shader_storage_buffer_object GL_ARB_uniform_buffer_object
5 // [end config]
7 /* From the GL_ARB_shader_storage_buffer_object:
8  *
9  *     "The std430 qualifier is supported only for shader storage blocks;
10  *      a shader using the std430 qualifier on a uniform block will fail to
11  *      compile."
12  */
14 #version 120
15 #extension GL_ARB_shader_storage_buffer_object: require
16 #extension GL_ARB_uniform_buffer_object: require
18 layout(std430) uniform Ubo {
19    vec4 b;
22 vec4 foo(void) {
23         return b;