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:
32
Test/spv.430.vert
Normal file
32
Test/spv.430.vert
Normal file
@@ -0,0 +1,32 @@
|
||||
#version 430 core
|
||||
|
||||
layout(location = 4) uniform vec4 uv4;
|
||||
|
||||
out gl_PerVertex {
|
||||
float gl_ClipDistance[];
|
||||
};
|
||||
|
||||
const float cx = 4.20;
|
||||
const float dx = 4.20;
|
||||
in vec4 bad[10];
|
||||
highp in vec4 badorder;
|
||||
out invariant vec4 badorder2;
|
||||
out flat vec4 badorder3;
|
||||
|
||||
uniform float f;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_ClipDistance[2] = 3.7;
|
||||
|
||||
if (bad[0].x == cx.x)
|
||||
badorder3 = bad[0];
|
||||
|
||||
gl_ClipDistance[0] = f.x;
|
||||
}
|
||||
|
||||
layout(binding = 3) uniform boundblock { int aoeu; } boundInst;
|
||||
layout(binding = 7) uniform anonblock { int aoeu; } ;
|
||||
layout(binding = 4) uniform sampler2D sampb1;
|
||||
layout(binding = 5) uniform sampler2D sampb2[10];
|
||||
layout(binding = 31) uniform sampler2D sampb4;
|
||||
Reference in New Issue
Block a user