SPIRV-Cross/reference/shaders-msl/desktop-only/vert/clip-cull-distance..no-user-varying.desktop.vert
Hans-Kristian Arntzen ebf463674d MSL: Allow removing clip distance user varyings.
Only safe if user knows that subsequent shader stage will not read clip
distance.
2020-04-20 09:58:40 +02:00

21 lines
355 B
GLSL

#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float4 gl_Position [[position]];
float gl_ClipDistance [[clip_distance]] [2];
};
vertex main0_out main0()
{
main0_out out = {};
out.gl_Position = float4(10.0);
out.gl_ClipDistance[0] = 1.0;
out.gl_ClipDistance[1] = 4.0;
return out;
}