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

39
Test/spv.150.geom Normal file
View File

@@ -0,0 +1,39 @@
#version 150 core
layout(triangles_adjacency) in;
layout(max_vertices = 30) out;
layout(stream = 3, triangle_strip) out;
in fromVertex {
in vec3 color;
} fromV[];
out toFragment {
out vec3 color;
} toF;
out fromVertex {
vec3 color;
};
void main()
{
color = fromV[0].color;
//?? gl_ClipDistance[3] = gl_in[1].gl_ClipDistance[2];
gl_Position = gl_in[0].gl_Position;
gl_PointSize = gl_in[3].gl_PointSize;
gl_PrimitiveID = gl_PrimitiveIDIn;
gl_Layer = 2;
EmitVertex();
color = 2 * fromV[0].color;
gl_Position = 2.0 * gl_in[0].gl_Position;
gl_PointSize = 2.0 * gl_in[3].gl_PointSize;
gl_PrimitiveID = gl_PrimitiveIDIn + 1;
gl_Layer = 3;
EmitVertex();
EndPrimitive();
}