1struct VS_INPUT { 2 float4 Position : POSITION; 3}; 4 5struct VS_OUTPUT { 6 float4 Position : SV_Position; 7 float4 ClipRect : SV_ClipDistance0; // vector in split struct 8}; 9 10VS_OUTPUT main(const VS_INPUT v) 11{ 12 VS_OUTPUT Output; 13 Output.Position = 0; 14 15 Output.ClipRect.x = 1; 16 Output.ClipRect.y = 2; 17 Output.ClipRect.z = 3; 18 Output.ClipRect.w = 4; 19 20 return Output; 21} 22