diff options
Diffstat (limited to 'tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-01.vert')
-rw-r--r-- | tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-01.vert | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-01.vert b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-01.vert new file mode 100644 index 00000000..7ebd324a --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-01.vert @@ -0,0 +1,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; +} |