mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
24 lines
534 B
GLSL
24 lines
534 B
GLSL
|
struct VS_OUTPUT {
|
||
|
float4 Position : SV_Position;
|
||
|
float3 clip0 : SV_ClipDistance0; // multiple semantic IDs, vec3+vec4 (skip)
|
||
|
float4 clip1 : SV_ClipDistance1; // ...
|
||
|
};
|
||
|
|
||
|
VS_OUTPUT main()
|
||
|
{
|
||
|
VS_OUTPUT Output;
|
||
|
Output.Position = 0;
|
||
|
|
||
|
Output.clip0.x = 0;
|
||
|
Output.clip0.y = 1;
|
||
|
Output.clip0.z = 2;
|
||
|
// Position 3 is skipped
|
||
|
|
||
|
Output.clip1.x = 4;
|
||
|
Output.clip1.y = 5;
|
||
|
Output.clip1.z = 6;
|
||
|
Output.clip1.w = 7;
|
||
|
|
||
|
return Output;
|
||
|
}
|