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.10
/
compiler
/
storage-qualfiers
/
static-write-varying-02.frag
blob
11b58347f3a66e21db553652ab306f7fc3605787
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.10
4
// [end config]
5
//
6
// From section 4.3.6 of the GLSL 1.10 spec:
7
// A fragment shader can not write to a varying variable.
8
9
#version 110
10
11
varying float x;
12
13
void f(out float y) {
14
y = 0.0;
15
}
16
17
void g() {
18
f(x);
19
}