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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.50
/
compiler
/
layout-global-only-2.frag
blob
3b1a54a069caa82656ef48ff4416a1ffacb0be5f
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(0., a, 0., 1.);
15
}
16
17
void main()
18
{
19
gl_FragColor = test(1.);
20
}