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:
26
Test/spv.330.geom
Normal file
26
Test/spv.330.geom
Normal file
@@ -0,0 +1,26 @@
|
||||
#version 330 core
|
||||
#extension GL_ARB_separate_shader_objects : enable
|
||||
|
||||
in gl_PerVertex
|
||||
{
|
||||
float gl_ClipDistance[1];
|
||||
vec4 gl_Position;
|
||||
} gl_in[];
|
||||
|
||||
out gl_PerVertex
|
||||
{
|
||||
vec4 gl_Position;
|
||||
float gl_ClipDistance[1];
|
||||
};
|
||||
|
||||
layout( triangles ) in;
|
||||
layout( triangle_strip, max_vertices = 3 ) out;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 v;
|
||||
gl_Position = gl_in[1].gl_Position;
|
||||
gl_ClipDistance[0] = gl_in[1].gl_ClipDistance[0];
|
||||
EmitVertex();
|
||||
EndPrimitive();
|
||||
}
|
||||
Reference in New Issue
Block a user