• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.tristream-append.geom
2Shader version: 500
3invocations = -1
4max_vertices = 3
5input primitive = triangles
6output primitive = triangle_strip
70:? Sequence
80:8  Function Definition: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
90:8    Function Parameters:
100:8      'output' ( in structure{})
110:8      'TriStream' ( out structure{})
120:?     Sequence
130:9      Sequence
140:9        Sequence
150:9          move second child to first child ( temp structure{})
160:9            'TriStream' ( out structure{})
170:9            'output' ( in structure{})
180:9        EmitVertex ( temp void)
190:14  Function Definition: @main(struct-GSPS_INPUT1[3];struct-GSPS_INPUT1; ( temp void)
200:14    Function Parameters:
210:14      'input' ( in 3-element array of structure{})
220:14      'TriStream' ( out structure{})
230:?     Sequence
240:15      Function Call: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
250:15        direct index ( temp structure{})
260:15          'input' ( in 3-element array of structure{})
270:15          Constant:
280:15            0 (const int)
290:15        'TriStream' ( out structure{})
300:16      Function Call: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
310:16        direct index ( temp structure{})
320:16          'input' ( in 3-element array of structure{})
330:16          Constant:
340:16            1 (const int)
350:16        'TriStream' ( out structure{})
360:17      Function Call: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
370:17        direct index ( temp structure{})
380:17          'input' ( in 3-element array of structure{})
390:17          Constant:
400:17            2 (const int)
410:17        'TriStream' ( out structure{})
420:14  Function Definition: main( ( temp void)
430:14    Function Parameters:
440:?     Sequence
450:14      move second child to first child ( temp 3-element array of structure{})
460:?         'input' ( temp 3-element array of structure{})
470:?         'input' ( in 3-element array of structure{})
480:14      Function Call: @main(struct-GSPS_INPUT1[3];struct-GSPS_INPUT1; ( temp void)
490:?         'input' ( temp 3-element array of structure{})
500:?         'TriStream' ( temp structure{})
510:?   Linker Objects
52
53
54Linked geometry stage:
55
56
57Shader version: 500
58invocations = 1
59max_vertices = 3
60input primitive = triangles
61output primitive = triangle_strip
620:? Sequence
630:8  Function Definition: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
640:8    Function Parameters:
650:8      'output' ( in structure{})
660:8      'TriStream' ( out structure{})
670:?     Sequence
680:9      Sequence
690:9        Sequence
700:9          move second child to first child ( temp structure{})
710:9            'TriStream' ( out structure{})
720:9            'output' ( in structure{})
730:9        EmitVertex ( temp void)
740:14  Function Definition: @main(struct-GSPS_INPUT1[3];struct-GSPS_INPUT1; ( temp void)
750:14    Function Parameters:
760:14      'input' ( in 3-element array of structure{})
770:14      'TriStream' ( out structure{})
780:?     Sequence
790:15      Function Call: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
800:15        direct index ( temp structure{})
810:15          'input' ( in 3-element array of structure{})
820:15          Constant:
830:15            0 (const int)
840:15        'TriStream' ( out structure{})
850:16      Function Call: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
860:16        direct index ( temp structure{})
870:16          'input' ( in 3-element array of structure{})
880:16          Constant:
890:16            1 (const int)
900:16        'TriStream' ( out structure{})
910:17      Function Call: EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1; ( temp void)
920:17        direct index ( temp structure{})
930:17          'input' ( in 3-element array of structure{})
940:17          Constant:
950:17            2 (const int)
960:17        'TriStream' ( out structure{})
970:14  Function Definition: main( ( temp void)
980:14    Function Parameters:
990:?     Sequence
1000:14      move second child to first child ( temp 3-element array of structure{})
1010:?         'input' ( temp 3-element array of structure{})
1020:?         'input' ( in 3-element array of structure{})
1030:14      Function Call: @main(struct-GSPS_INPUT1[3];struct-GSPS_INPUT1; ( temp void)
1040:?         'input' ( temp 3-element array of structure{})
1050:?         'TriStream' ( temp structure{})
1060:?   Linker Objects
107
108Validation failed
109// Module Version 10000
110// Generated by (magic number): 80007
111// Id's are bound by 57
112
113                              Capability Geometry
114               1:             ExtInstImport  "GLSL.std.450"
115                              MemoryModel Logical GLSL450
116                              EntryPoint Geometry 4  "main"
117                              ExecutionMode 4 Triangles
118                              ExecutionMode 4 Invocations 1
119                              ExecutionMode 4 OutputTriangleStrip
120                              ExecutionMode 4 OutputVertices 3
121                              Source HLSL 500
122                              Name 4  "main"
123                              Name 6  "GSPS_INPUT"
124                              Name 11  "EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1;"
125                              Name 9  "output"
126                              Name 10  "TriStream"
127                              Name 20  "@main(struct-GSPS_INPUT1[3];struct-GSPS_INPUT1;"
128                              Name 18  "input"
129                              Name 19  "TriStream"
130                              Name 23  "TriStream"
131                              Name 27  "param"
132                              Name 30  "param"
133                              Name 34  "param"
134                              Name 37  "param"
135                              Name 41  "param"
136                              Name 44  "param"
137                              Name 47  "input"
138                              Name 49  "input"
139                              Name 51  "TriStream"
140                              Name 52  "param"
141                              Name 54  "param"
142               2:             TypeVoid
143               3:             TypeFunction 2
144   6(GSPS_INPUT):             TypeStruct
145               7:             TypePointer Function 6(GSPS_INPUT)
146               8:             TypeFunction 2 7(ptr) 7(ptr)
147              13:             TypeInt 32 0
148              14:     13(int) Constant 3
149              15:             TypeArray 6(GSPS_INPUT) 14
150              16:             TypePointer Function 15
151              17:             TypeFunction 2 16(ptr) 7(ptr)
152              22:             TypePointer Output 6(GSPS_INPUT)
153   23(TriStream):     22(ptr) Variable Output
154              25:             TypeInt 32 1
155              26:     25(int) Constant 0
156              33:     25(int) Constant 1
157              40:     25(int) Constant 2
158              48:             TypePointer Input 15
159       49(input):     48(ptr) Variable Input
160         4(main):           2 Function None 3
161               5:             Label
162       47(input):     16(ptr) Variable Function
163   51(TriStream):      7(ptr) Variable Function
164       52(param):     16(ptr) Variable Function
165       54(param):      7(ptr) Variable Function
166              50:          15 Load 49(input)
167                              Store 47(input) 50
168              53:          15 Load 47(input)
169                              Store 52(param) 53
170              55:           2 FunctionCall 20(@main(struct-GSPS_INPUT1[3];struct-GSPS_INPUT1;) 52(param) 54(param)
171              56:6(GSPS_INPUT) Load 54(param)
172                              Store 51(TriStream) 56
173                              Return
174                              FunctionEnd
17511(EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1;):           2 Function None 8
176       9(output):      7(ptr) FunctionParameter
177   10(TriStream):      7(ptr) FunctionParameter
178              12:             Label
179              24:6(GSPS_INPUT) Load 9(output)
180                              Store 23(TriStream) 24
181                              EmitVertex
182                              Return
183                              FunctionEnd
18420(@main(struct-GSPS_INPUT1[3];struct-GSPS_INPUT1;):           2 Function None 17
185       18(input):     16(ptr) FunctionParameter
186   19(TriStream):      7(ptr) FunctionParameter
187              21:             Label
188       27(param):      7(ptr) Variable Function
189       30(param):      7(ptr) Variable Function
190       34(param):      7(ptr) Variable Function
191       37(param):      7(ptr) Variable Function
192       41(param):      7(ptr) Variable Function
193       44(param):      7(ptr) Variable Function
194              28:      7(ptr) AccessChain 18(input) 26
195              29:6(GSPS_INPUT) Load 28
196                              Store 27(param) 29
197              31:           2 FunctionCall 11(EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1;) 27(param) 30(param)
198              32:6(GSPS_INPUT) Load 30(param)
199                              Store 19(TriStream) 32
200              35:      7(ptr) AccessChain 18(input) 33
201              36:6(GSPS_INPUT) Load 35
202                              Store 34(param) 36
203              38:           2 FunctionCall 11(EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1;) 34(param) 37(param)
204              39:6(GSPS_INPUT) Load 37(param)
205                              Store 19(TriStream) 39
206              42:      7(ptr) AccessChain 18(input) 40
207              43:6(GSPS_INPUT) Load 42
208                              Store 41(param) 43
209              45:           2 FunctionCall 11(EmitVertex(struct-GSPS_INPUT1;struct-GSPS_INPUT1;) 41(param) 44(param)
210              46:6(GSPS_INPUT) Load 44(param)
211                              Store 19(TriStream) 46
212                              Return
213                              FunctionEnd
214