SPIRV-Cross/shaders-msl/tese/read-tess-level-in-func-quad.msl2.tese
Hans-Kristian Arntzen 82a77e534e MSL: Use proper array for quad tess levels.
We need to handle loads from array as well, so the float4 hack doesn't
work.
2021-04-23 14:12:00 +02:00

18 lines
281 B
GLSL

#version 450
layout(quads) in;
vec4 read_tess_levels()
{
return vec4(
gl_TessLevelOuter[0],
gl_TessLevelOuter[1],
gl_TessLevelOuter[2],
gl_TessLevelOuter[3]) +
vec2(gl_TessLevelInner[0], gl_TessLevelInner[1]).xyxy;
}
void main()
{
gl_Position = read_tess_levels();
}