From 3ce5745ade84a461ff72c7481fba0b822d0f1fe6 Mon Sep 17 00:00:00 2001 From: John Kessenich Date: Fri, 7 Jun 2013 18:54:19 +0000 Subject: [PATCH] Add more tests for built-in variables. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21893 e7fa87d3-cd2b-0410-9028-fcbf551c1848 --- Test/300.frag | 3 +++ Test/300.vert | 3 +++ Test/300block.frag | 1 + 3 files changed, 7 insertions(+) diff --git a/Test/300.frag b/Test/300.frag index 91fd8c65..ad6cbe3d 100644 --- a/Test/300.frag +++ b/Test/300.frag @@ -71,6 +71,9 @@ void main() dvec2 boo2; // ERROR dvec3 boo3; // ERROR dvec4 boo4; // ERROR + + f += gl_FragCoord.y; + gl_FragDepth = f; } float imageBuffer; // ERROR, reserved diff --git a/Test/300.vert b/Test/300.vert index fa67960c..96c74b44 100644 --- a/Test/300.vert +++ b/Test/300.vert @@ -31,6 +31,9 @@ void main() mat3x2 op = outerProduct(v2, v3); + gl_Position = m44[2]; + gl_PointSize = v2.y; + #ifdef GL_ES #error GL_ES is set #else diff --git a/Test/300block.frag b/Test/300block.frag index 989fee3c..8f88e157 100644 --- a/Test/300block.frag +++ b/Test/300block.frag @@ -35,4 +35,5 @@ uniform barBlockArray { void main() { texture(s.sampler, vec3(inst.ni, bv.y, insts[2].nbv.z)); + insts[s.v.x]; // ERROR }