repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
arb_shader_storage_buffer_object
/
compiler
/
shader-storage-block-initializer.frag
blob
c8c97621121ff51b5c714aba0ad8d5bfe99b2e04
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.20
4
// require_extensions: GL_ARB_shader_storage_buffer_object
5
// [end config]
6
7
#version 120
8
#extension GL_ARB_shader_storage_buffer_object: require
9
10
/* From the GL_ARB_shader_storage_buffer_object spec:
11
*
12
* "Buffer variables cannot have initializers"
13
*/
14
15
buffer a {
16
vec4 b = vec4(1.0);
17
};
18
19
vec4 foo(void) {
20
return b;
21
}