glslang SPV tests: Add a set of SPV tests.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31212 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2015-05-15 21:32:46 +00:00
parent e7cbfa5cab
commit 39374dadb5
136 changed files with 12813 additions and 0 deletions

41
Test/spv.140.frag Normal file
View File

@@ -0,0 +1,41 @@
#version 140
in vec4 k;
out vec4 o;
in float gl_ClipDistance[5];
layout(row_major) uniform;
uniform sampler2D samp2Da[3];
layout(std140) uniform bn {
layout(row_major) mat4 matra[4];
layout(column_major) mat4 matca[4];
layout(row_major) mat4 matr;
layout(column_major) mat4 matc;
mat4 matrdef;
};
uniform sampler2DRect sampR;
uniform isamplerBuffer sampB;
float foo();
void main()
{
o.y = gl_ClipDistance[2];
o.z = gl_ClipDistance[int(k)];
o.w = float(textureSize(sampR) + textureSize(sampB)) / 100.0;
o.z = foo();
}
// Test extra-function initializers
float i1 = gl_FrontFacing ? -2.0 : 2.0;
float i2 = 102;
float foo()
{
return i1 + i2;
}