aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-01.vert
blob: 7ebd324a2c0e5e49bf9a124a08657b9e5ea06622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// [config]
// expect_result: fail
// glsl_version: 1.20
// glsles_version: 1.00
// [end config]
//
// From section 4.3.4 of the GLSL 1.20 spec:
//     Attribute variables are read-only as far as the vertex shader is
//     concerned.


attribute float x;

float f() {
	x = 0.0;
	return x;
}