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.20
/
compiler
/
storage-qualfiers
/
static-write-attribute-02.vert
blob
ca30003b1726e62c86bf3f34cf7f5443ec517e7c
1
// [config]
2
// expect_result: fail
3
// glsl_version: 1.20
4
// [end config]
5
//
6
// From section 4.3.4 of the GLSL 1.20 spec:
7
// Attribute variables are read-only as far as the vertex shader is
8
// concerned.
9
10
#version 120
11
12
attribute float x;
13
14
void f(out float y) {
15
y = 0.0;
16
}
17
18
void g() {
19
f(x);
20
}