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
fbo-mrt-alphatest: Actually require MRTs to be available.
[piglit.git]
/
tests
/
spec
/
arb_shader_storage_buffer_object
/
compiler
/
shader-storage-outside-block.frag
blob
31c2b313882df5c41b49dc64bb8ee529cdc66c37
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
* "It is illegal to declare buffer variables at global scope
13
* (outside a block)."
14
*/
15
16
buffer vec4 a;
17
18
vec4 foo(void) {
19
return a;
20
}