LoopDawg | 307b650 | 2017-07-05 11:33:06 -0600 | [diff] [blame] | 1 | struct VS_OUTPUT { |
2 | float4 Position : SV_Position; | ||||
3 | float4 clip0 : SV_ClipDistance0; // multiple semantic IDs, two vec4s (no extra packing) | ||||
4 | float4 clip1 : SV_ClipDistance1; // ... | ||||
5 | }; | ||||
6 | |||||
7 | VS_OUTPUT main() | ||||
8 | { | ||||
9 | VS_OUTPUT Output; | ||||
10 | Output.Position = 0; | ||||
11 | |||||
12 | Output.clip0.x = 0; | ||||
13 | Output.clip0.y = 1; | ||||
14 | Output.clip0.z = 2; | ||||
15 | Output.clip0.w = 3; | ||||
16 | |||||
17 | Output.clip1.x = 4; | ||||
18 | Output.clip1.y = 5; | ||||
19 | Output.clip1.z = 6; | ||||
20 | Output.clip1.w = 7; | ||||
21 | |||||
22 | return Output; | ||||
23 | } |