projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git]
/
Test
/
hlsl.clipdistance-7.vert
1
struct VS_OUTPUT {
2
float4 Position : SV_Position;
3
float3 clip0 : SV_ClipDistance0; // multiple semantic IDs, vec3+vec4 (skip)
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
// Position 3 is skipped
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
}