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 #648 from steve-lunarg/type-identifiers
[platform/upstream/glslang.git]
/
Test
/
hlsl.struct.split.trivial.geom
1
2
struct PS_IN
3
{
4
float4 pos : SV_Position;
5
};
6
7
struct GS_OUT
8
{
9
float4 pos : SV_Position;
10
};
11
12
[maxvertexcount(3)]
13
void main(triangle PS_IN i[3], inout TriangleStream <GS_OUT> ts)
14
{
15
GS_OUT o;
16
17
for (int x=0; x<3; ++x) {
18
o.pos = i[x].pos;
19
ts.Append(o);
20
}
21
}