glslang testing: Remove dependence on testfiles from LunarGLASS.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31512 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2015-06-17 16:15:09 +00:00
parent ab556eaaea
commit 2f21fccee9
82 changed files with 2145 additions and 80 deletions

41
Test/forLoop.frag Normal file
View File

@@ -0,0 +1,41 @@
#version 130
uniform vec4 bigColor;
in vec4 BaseColor;
in float f;
uniform int Count;
uniform uvec4 v4;
void main()
{
vec4 color = BaseColor;
for (int i = 0; i < Count; ++i) {
color += bigColor;
}
gl_FragColor = color;
float sum = 0.0;
for (int i = 0; i < 4; ++i)
sum += v4[i];
vec4 tv4;
for (int i = 0; i < 4; ++i)
tv4[i] = v4[i] * 4u;
gl_FragColor += vec4(sum) + tv4;
vec4 r;
r.xyz = BaseColor.xyz;
for (int i = 0; i < Count; ++i)
r.w = f;
gl_FragColor.xyz += r.xyz;
for (int i = 0; i < 16; i += 4)
gl_FragColor *= f;
}