aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag
blob: c2f320ce7343a20023bac90918336633dbfb91b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// [config]
// expect_result: fail
// glsl_version: 1.20
// glsles_version: 1.00
// [end config]
//
// From section 4.3.6 of the GLSL 1.20 spec:
//     A fragment shader can not write to a varying variable.

varying float x;

void g() {
    x = 0.0;
}