mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-29 06:00:50 +00:00
f3e2a89452
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24518 e7fa87d3-cd2b-0410-9028-fcbf551c1848
45 lines
1.1 KiB
GLSL
45 lines
1.1 KiB
GLSL
#version 400 core
|
|
|
|
layout(vertices = 4) out;
|
|
int outa[gl_out.length()];
|
|
|
|
layout(quads) in; // ERROR
|
|
layout(ccw) out; // ERROR
|
|
layout(fractional_even_spacing) in; // ERROR
|
|
|
|
patch in vec4 patchIn; // ERROR
|
|
patch out vec4 patchOut;
|
|
|
|
void main()
|
|
{
|
|
barrier();
|
|
|
|
int a = gl_MaxTessControlInputComponents +
|
|
gl_MaxTessControlOutputComponents +
|
|
gl_MaxTessControlTextureImageUnits +
|
|
gl_MaxTessControlUniformComponents +
|
|
gl_MaxTessControlTotalOutputComponents;
|
|
|
|
vec4 p = gl_in[1].gl_Position;
|
|
float ps = gl_in[1].gl_PointSize;
|
|
float cd = gl_in[1].gl_ClipDistance[2];
|
|
|
|
int pvi = gl_PatchVerticesIn;
|
|
int pid = gl_PrimitiveID;
|
|
int iid = gl_InvocationID;
|
|
|
|
gl_out[1].gl_Position = p;
|
|
gl_out[1].gl_PointSize = ps;
|
|
gl_out[1].gl_ClipDistance[1] = cd;
|
|
|
|
gl_TessLevelOuter[3] = 3.2;
|
|
gl_TessLevelInner[1] = 1.3;
|
|
}
|
|
|
|
layout(vertices = 4) in; // ERROR
|
|
layout(vertices = 5) out; // ERROR
|
|
|
|
void foo()
|
|
{
|
|
gl_out[4].gl_PointSize; // ERROR
|
|
} |