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:
22
Test/spv.300layout.frag
Normal file
22
Test/spv.300layout.frag
Normal file
@@ -0,0 +1,22 @@
|
||||
#version 300 es
|
||||
|
||||
precision mediump float;
|
||||
|
||||
in vec4 pos;
|
||||
in vec3 color;
|
||||
|
||||
layout(location = 7) out vec3 c;
|
||||
layout(LocatioN = 3) out vec4 p[2];
|
||||
|
||||
struct S {
|
||||
vec3 c;
|
||||
float f;
|
||||
};
|
||||
|
||||
in S s;
|
||||
|
||||
void main()
|
||||
{
|
||||
c = color + s.c;
|
||||
p[1] = pos * s.f;
|
||||
}
|
||||
Reference in New Issue
Block a user