bgfx/3rdparty/glslang/Test/hlsl.clipdistance-4.frag

10 lines
240 B
GLSL
Raw Normal View History

2017-08-26 05:42:26 +03:00
struct VS_OUTPUT {
float4 Position : SV_Position;
float4 ClipRect : SV_ClipDistance0; // vector in split struct
};
float4 main(const VS_OUTPUT v) : SV_Target0
{
return v.Position + v.ClipRect;
}