1struct VS_OUTPUT { 2 float4 Position : SV_Position; 3 float2 ClipRect[2] : SV_ClipDistance0; // array of float2 in split struct 4}; 5 6float4 main(const VS_OUTPUT v) : SV_Target0 7{ 8 return v.Position + v.ClipRect[0].x + v.ClipRect[1].x; 9} 10
1struct VS_OUTPUT { 2 float4 Position : SV_Position; 3 float2 ClipRect[2] : SV_ClipDistance0; // array of float2 in split struct 4}; 5 6float4 main(const VS_OUTPUT v) : SV_Target0 7{ 8 return v.Position + v.ClipRect[0].x + v.ClipRect[1].x; 9} 10