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
/
glsl-1.50
/
compiler
/
layout-global-only-2.vert
blob
3a594276daa126d9ebf935df1b8d71789e6c8720
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.50
4
// check_link: true
5
// [end config]
6
//
7
// Section 4.3.8(Layout Qualifiers) of the GLSL 1.50 spec says:
8
// "Declarations of layouts can only be made at global scope"
9
10
#version 150
11
12
vec4 test(layout(pixel_center_integer) in float a)
13
{
14
return vec4(a);
15
}
16
17
void main()
18
{
19
gl_Position = test(.5);
20
}