mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-28 05:30:33 +00:00
39374dadb5
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31212 e7fa87d3-cd2b-0410-9028-fcbf551c1848
53 lines
1.2 KiB
GLSL
53 lines
1.2 KiB
GLSL
#version 400 core
|
|
|
|
layout(triangles, ccw) in;
|
|
|
|
layout(fractional_odd_spacing) in;
|
|
|
|
layout(point_mode) in;
|
|
|
|
patch in vec4 patchIn;
|
|
|
|
void main()
|
|
{
|
|
int a = gl_MaxTessEvaluationInputComponents +
|
|
gl_MaxTessEvaluationOutputComponents +
|
|
gl_MaxTessEvaluationTextureImageUnits +
|
|
gl_MaxTessEvaluationUniformComponents +
|
|
gl_MaxTessPatchComponents +
|
|
gl_MaxPatchVertices +
|
|
gl_MaxTessGenLevel;
|
|
|
|
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;
|
|
vec3 tc = gl_TessCoord;
|
|
float tlo = gl_TessLevelOuter[3];
|
|
float tli = gl_TessLevelInner[1];
|
|
|
|
gl_Position = p;
|
|
gl_PointSize = ps;
|
|
gl_ClipDistance[2] = cd;
|
|
}
|
|
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
|
|
in vec2 inb[];
|
|
in vec2 ind[gl_MaxPatchVertices];
|
|
|
|
in testblb {
|
|
int f;
|
|
} blb[];
|
|
|
|
in testbld {
|
|
int f;
|
|
} bld[gl_MaxPatchVertices];
|
|
|
|
layout(location = 23) in vec4 ivla[];
|
|
layout(location = 24) in vec4 ivlb[];
|
|
|
|
layout(location = 23) out vec4 ovla[2];
|