bgfx/3rdparty/glslang/Test/hlsl.clipdistance-7.frag
Branimir Karadžić b6f91e18fd Updated glslang.
2017-08-25 19:42:26 -07:00

11 lines
322 B
GLSL

struct VS_OUTPUT {
float4 Position : SV_Position;
float3 clip0 : SV_ClipDistance0; // multiple semantic IDs, vec3+vec4 (skip)
float4 clip1 : SV_ClipDistance1; // ...
};
float4 main(VS_OUTPUT v) : SV_Target0
{
return v.Position + v.clip0.x + v.clip1.x;
}