blob: 89c02bf2ab5b62149d691b5156256b17dd416e4a [file] [log] [blame]
steve-lunarg132d3312016-12-19 15:48:01 -07001hlsl.struct.split.trivial.geom
John Kessenich6fa17642017-04-07 15:33:08 -06002Shader version: 500
steve-lunarg132d3312016-12-19 15:48:01 -07003invocations = -1
4max_vertices = 3
5input primitive = triangles
6output primitive = triangle_strip
70:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -060080:14 Function Definition: @main(struct-PS_IN-vf41[3];struct-GS_OUT-vf41; ( temp void)
steve-lunarg132d3312016-12-19 15:48:01 -070090:14 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -0600100:14 'i' ( in 3-element array of structure{ temp 4-component vector of float pos})
110:14 'ts' ( out structure{ temp 4-component vector of float pos})
steve-lunarg132d3312016-12-19 15:48:01 -0700120:? Sequence
130:17 Sequence
John Kessenich71c100d2017-03-14 19:43:13 -0600140:17 move second child to first child ( temp int)
150:17 'x' ( temp int)
steve-lunarg132d3312016-12-19 15:48:01 -0700160:17 Constant:
170:17 0 (const int)
180:17 Loop with condition tested first
190:17 Loop Condition
John Kessenich71c100d2017-03-14 19:43:13 -0600200:17 Compare Less Than ( temp bool)
210:17 'x' ( temp int)
steve-lunarg132d3312016-12-19 15:48:01 -0700220:17 Constant:
230:17 3 (const int)
240:17 Loop Body
250:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -0600260:18 move second child to first child ( temp 4-component vector of float)
270:18 pos: direct index for structure ( temp 4-component vector of float)
280:18 'o' ( temp structure{ temp 4-component vector of float pos})
steve-lunarg132d3312016-12-19 15:48:01 -0700290:18 Constant:
300:18 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600310:18 pos: direct index for structure ( temp 4-component vector of float)
320:18 indirect index ( temp structure{ temp 4-component vector of float pos})
330:18 'i' ( in 3-element array of structure{ temp 4-component vector of float pos})
340:18 'x' ( temp int)
steve-lunargec712eb2017-02-02 16:32:02 -0700350:18 Constant:
360:18 0 (const int)
steve-lunarg132d3312016-12-19 15:48:01 -0700370:19 Sequence
steve-lunarg08e0c082017-03-29 20:01:13 -0600380:19 Sequence
390:19 move second child to first child ( temp 4-component vector of float)
John Kesseniche516d432017-08-09 14:29:29 -0600400:? 'ts.pos' ( out 4-component vector of float Position)
steve-lunarg08e0c082017-03-29 20:01:13 -0600410:19 pos: direct index for structure ( temp 4-component vector of float)
420:19 'o' ( temp structure{ temp 4-component vector of float pos})
430:19 Constant:
440:19 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600450:19 EmitVertex ( temp void)
steve-lunarg132d3312016-12-19 15:48:01 -0700460:17 Loop Terminal Expression
John Kessenich71c100d2017-03-14 19:43:13 -0600470:17 Pre-Increment ( temp int)
480:17 'x' ( temp int)
490:14 Function Definition: main( ( temp void)
steve-lunargec712eb2017-02-02 16:32:02 -0700500:14 Function Parameters:
510:? Sequence
520:14 Sequence
John Kessenich71c100d2017-03-14 19:43:13 -0600530:14 move second child to first child ( temp 4-component vector of float)
540:14 pos: direct index for structure ( temp 4-component vector of float)
550:14 direct index ( temp structure{ temp 4-component vector of float pos})
560:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
steve-lunargec712eb2017-02-02 16:32:02 -0700570:14 Constant:
580:14 0 (const int)
590:14 Constant:
600:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600610:14 direct index ( in 4-component vector of float Position)
John Kesseniche516d432017-08-09 14:29:29 -0600620:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
steve-lunargec712eb2017-02-02 16:32:02 -0700630:14 Constant:
640:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600650:14 move second child to first child ( temp 4-component vector of float)
660:14 pos: direct index for structure ( temp 4-component vector of float)
670:14 direct index ( temp structure{ temp 4-component vector of float pos})
680:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
steve-lunargec712eb2017-02-02 16:32:02 -0700690:14 Constant:
700:14 1 (const int)
710:14 Constant:
720:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600730:14 direct index ( in 4-component vector of float Position)
John Kesseniche516d432017-08-09 14:29:29 -0600740:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
steve-lunargec712eb2017-02-02 16:32:02 -0700750:14 Constant:
760:14 1 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600770:14 move second child to first child ( temp 4-component vector of float)
780:14 pos: direct index for structure ( temp 4-component vector of float)
790:14 direct index ( temp structure{ temp 4-component vector of float pos})
800:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
steve-lunargec712eb2017-02-02 16:32:02 -0700810:14 Constant:
820:14 2 (const int)
830:14 Constant:
840:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600850:14 direct index ( in 4-component vector of float Position)
John Kesseniche516d432017-08-09 14:29:29 -0600860:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
steve-lunargec712eb2017-02-02 16:32:02 -0700870:14 Constant:
880:14 2 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -0600890:14 Function Call: @main(struct-PS_IN-vf41[3];struct-GS_OUT-vf41; ( temp void)
900:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
910:? 'ts' ( temp structure{ temp 4-component vector of float pos})
steve-lunarg132d3312016-12-19 15:48:01 -0700920:? Linker Objects
John Kesseniche516d432017-08-09 14:29:29 -0600930:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
940:? 'ts.pos' ( out 4-component vector of float Position)
steve-lunarg132d3312016-12-19 15:48:01 -070095
96
97Linked geometry stage:
98
99
John Kessenich6fa17642017-04-07 15:33:08 -0600100Shader version: 500
steve-lunarg132d3312016-12-19 15:48:01 -0700101invocations = 1
102max_vertices = 3
103input primitive = triangles
104output primitive = triangle_strip
1050:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -06001060:14 Function Definition: @main(struct-PS_IN-vf41[3];struct-GS_OUT-vf41; ( temp void)
steve-lunarg132d3312016-12-19 15:48:01 -07001070:14 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -06001080:14 'i' ( in 3-element array of structure{ temp 4-component vector of float pos})
1090:14 'ts' ( out structure{ temp 4-component vector of float pos})
steve-lunarg132d3312016-12-19 15:48:01 -07001100:? Sequence
1110:17 Sequence
John Kessenich71c100d2017-03-14 19:43:13 -06001120:17 move second child to first child ( temp int)
1130:17 'x' ( temp int)
steve-lunarg132d3312016-12-19 15:48:01 -07001140:17 Constant:
1150:17 0 (const int)
1160:17 Loop with condition tested first
1170:17 Loop Condition
John Kessenich71c100d2017-03-14 19:43:13 -06001180:17 Compare Less Than ( temp bool)
1190:17 'x' ( temp int)
steve-lunarg132d3312016-12-19 15:48:01 -07001200:17 Constant:
1210:17 3 (const int)
1220:17 Loop Body
1230:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -06001240:18 move second child to first child ( temp 4-component vector of float)
1250:18 pos: direct index for structure ( temp 4-component vector of float)
1260:18 'o' ( temp structure{ temp 4-component vector of float pos})
steve-lunarg132d3312016-12-19 15:48:01 -07001270:18 Constant:
1280:18 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001290:18 pos: direct index for structure ( temp 4-component vector of float)
1300:18 indirect index ( temp structure{ temp 4-component vector of float pos})
1310:18 'i' ( in 3-element array of structure{ temp 4-component vector of float pos})
1320:18 'x' ( temp int)
steve-lunargec712eb2017-02-02 16:32:02 -07001330:18 Constant:
1340:18 0 (const int)
steve-lunarg132d3312016-12-19 15:48:01 -07001350:19 Sequence
steve-lunarg08e0c082017-03-29 20:01:13 -06001360:19 Sequence
1370:19 move second child to first child ( temp 4-component vector of float)
John Kesseniche516d432017-08-09 14:29:29 -06001380:? 'ts.pos' ( out 4-component vector of float Position)
steve-lunarg08e0c082017-03-29 20:01:13 -06001390:19 pos: direct index for structure ( temp 4-component vector of float)
1400:19 'o' ( temp structure{ temp 4-component vector of float pos})
1410:19 Constant:
1420:19 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001430:19 EmitVertex ( temp void)
steve-lunarg132d3312016-12-19 15:48:01 -07001440:17 Loop Terminal Expression
John Kessenich71c100d2017-03-14 19:43:13 -06001450:17 Pre-Increment ( temp int)
1460:17 'x' ( temp int)
1470:14 Function Definition: main( ( temp void)
steve-lunargec712eb2017-02-02 16:32:02 -07001480:14 Function Parameters:
1490:? Sequence
1500:14 Sequence
John Kessenich71c100d2017-03-14 19:43:13 -06001510:14 move second child to first child ( temp 4-component vector of float)
1520:14 pos: direct index for structure ( temp 4-component vector of float)
1530:14 direct index ( temp structure{ temp 4-component vector of float pos})
1540:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
steve-lunargec712eb2017-02-02 16:32:02 -07001550:14 Constant:
1560:14 0 (const int)
1570:14 Constant:
1580:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001590:14 direct index ( in 4-component vector of float Position)
John Kesseniche516d432017-08-09 14:29:29 -06001600:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
steve-lunargec712eb2017-02-02 16:32:02 -07001610:14 Constant:
1620:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001630:14 move second child to first child ( temp 4-component vector of float)
1640:14 pos: direct index for structure ( temp 4-component vector of float)
1650:14 direct index ( temp structure{ temp 4-component vector of float pos})
1660:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
steve-lunargec712eb2017-02-02 16:32:02 -07001670:14 Constant:
1680:14 1 (const int)
1690:14 Constant:
1700:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001710:14 direct index ( in 4-component vector of float Position)
John Kesseniche516d432017-08-09 14:29:29 -06001720:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
steve-lunargec712eb2017-02-02 16:32:02 -07001730:14 Constant:
1740:14 1 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001750:14 move second child to first child ( temp 4-component vector of float)
1760:14 pos: direct index for structure ( temp 4-component vector of float)
1770:14 direct index ( temp structure{ temp 4-component vector of float pos})
1780:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
steve-lunargec712eb2017-02-02 16:32:02 -07001790:14 Constant:
1800:14 2 (const int)
1810:14 Constant:
1820:14 0 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001830:14 direct index ( in 4-component vector of float Position)
John Kesseniche516d432017-08-09 14:29:29 -06001840:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
steve-lunargec712eb2017-02-02 16:32:02 -07001850:14 Constant:
1860:14 2 (const int)
John Kessenich71c100d2017-03-14 19:43:13 -06001870:14 Function Call: @main(struct-PS_IN-vf41[3];struct-GS_OUT-vf41; ( temp void)
1880:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos})
1890:? 'ts' ( temp structure{ temp 4-component vector of float pos})
steve-lunarg132d3312016-12-19 15:48:01 -07001900:? Linker Objects
John Kesseniche516d432017-08-09 14:29:29 -06001910:? 'i.pos' ( in 3-element array of 4-component vector of float Position)
1920:? 'ts.pos' ( out 4-component vector of float Position)
steve-lunarg132d3312016-12-19 15:48:01 -0700193
John Kessenich2b5ea9f2018-01-31 18:35:56 -0700194// Module Version 10000
Graeme Leese182ab462020-06-22 11:49:38 +0100195// Generated by (magic number): 8000a
John Kessenichcca42a82017-08-03 18:41:48 -0600196// Id's are bound by 67
steve-lunarg132d3312016-12-19 15:48:01 -0700197
198 Capability Geometry
199 1: ExtInstImport "GLSL.std.450"
200 MemoryModel Logical GLSL450
John Kessenichcca42a82017-08-03 18:41:48 -0600201 EntryPoint Geometry 4 "main" 40 49
steve-lunarg132d3312016-12-19 15:48:01 -0700202 ExecutionMode 4 Triangles
203 ExecutionMode 4 Invocations 1
204 ExecutionMode 4 OutputTriangleStrip
205 ExecutionMode 4 OutputVertices 3
John Kessenich6fa17642017-04-07 15:33:08 -0600206 Source HLSL 500
steve-lunarg132d3312016-12-19 15:48:01 -0700207 Name 4 "main"
steve-lunargec712eb2017-02-02 16:32:02 -0700208 Name 8 "PS_IN"
209 MemberName 8(PS_IN) 0 "pos"
210 Name 13 "GS_OUT"
211 MemberName 13(GS_OUT) 0 "pos"
212 Name 18 "@main(struct-PS_IN-vf41[3];struct-GS_OUT-vf41;"
213 Name 16 "i"
214 Name 17 "ts"
215 Name 22 "x"
216 Name 33 "o"
John Kesseniche516d432017-08-09 14:29:29 -0600217 Name 40 "ts.pos"
steve-lunarg08e0c082017-03-29 20:01:13 -0600218 Name 46 "i"
John Kesseniche516d432017-08-09 14:29:29 -0600219 Name 49 "i.pos"
steve-lunarg08e0c082017-03-29 20:01:13 -0600220 Name 61 "ts"
221 Name 62 "param"
222 Name 64 "param"
John Kesseniche516d432017-08-09 14:29:29 -0600223 Decorate 40(ts.pos) BuiltIn Position
224 Decorate 49(i.pos) BuiltIn Position
steve-lunarg132d3312016-12-19 15:48:01 -0700225 2: TypeVoid
226 3: TypeFunction 2
steve-lunargec712eb2017-02-02 16:32:02 -0700227 6: TypeFloat 32
228 7: TypeVector 6(float) 4
229 8(PS_IN): TypeStruct 7(fvec4)
230 9: TypeInt 32 0
231 10: 9(int) Constant 3
232 11: TypeArray 8(PS_IN) 10
233 12: TypePointer Function 11
234 13(GS_OUT): TypeStruct 7(fvec4)
235 14: TypePointer Function 13(GS_OUT)
236 15: TypeFunction 2 12(ptr) 14(ptr)
237 20: TypeInt 32 1
238 21: TypePointer Function 20(int)
239 23: 20(int) Constant 0
240 30: 20(int) Constant 3
241 31: TypeBool
242 35: TypePointer Function 7(fvec4)
steve-lunarg08e0c082017-03-29 20:01:13 -0600243 39: TypePointer Output 7(fvec4)
John Kesseniche516d432017-08-09 14:29:29 -0600244 40(ts.pos): 39(ptr) Variable Output
steve-lunarg08e0c082017-03-29 20:01:13 -0600245 44: 20(int) Constant 1
246 47: TypeArray 7(fvec4) 10
247 48: TypePointer Input 47
John Kesseniche516d432017-08-09 14:29:29 -0600248 49(i.pos): 48(ptr) Variable Input
steve-lunarg08e0c082017-03-29 20:01:13 -0600249 50: TypePointer Input 7(fvec4)
250 57: 20(int) Constant 2
steve-lunarg132d3312016-12-19 15:48:01 -0700251 4(main): 2 Function None 3
252 5: Label
steve-lunarg08e0c082017-03-29 20:01:13 -0600253 46(i): 12(ptr) Variable Function
254 61(ts): 14(ptr) Variable Function
255 62(param): 12(ptr) Variable Function
256 64(param): 14(ptr) Variable Function
John Kesseniche516d432017-08-09 14:29:29 -0600257 51: 50(ptr) AccessChain 49(i.pos) 23
steve-lunargec712eb2017-02-02 16:32:02 -0700258 52: 7(fvec4) Load 51
steve-lunarg08e0c082017-03-29 20:01:13 -0600259 53: 35(ptr) AccessChain 46(i) 23 23
steve-lunargec712eb2017-02-02 16:32:02 -0700260 Store 53 52
John Kesseniche516d432017-08-09 14:29:29 -0600261 54: 50(ptr) AccessChain 49(i.pos) 44
steve-lunarg08e0c082017-03-29 20:01:13 -0600262 55: 7(fvec4) Load 54
263 56: 35(ptr) AccessChain 46(i) 44 23
264 Store 56 55
John Kesseniche516d432017-08-09 14:29:29 -0600265 58: 50(ptr) AccessChain 49(i.pos) 57
steve-lunarg08e0c082017-03-29 20:01:13 -0600266 59: 7(fvec4) Load 58
267 60: 35(ptr) AccessChain 46(i) 57 23
268 Store 60 59
269 63: 11 Load 46(i)
270 Store 62(param) 63
271 65: 2 FunctionCall 18(@main(struct-PS_IN-vf41[3];struct-GS_OUT-vf41;) 62(param) 64(param)
272 66: 13(GS_OUT) Load 64(param)
273 Store 61(ts) 66
steve-lunargec712eb2017-02-02 16:32:02 -0700274 Return
275 FunctionEnd
27618(@main(struct-PS_IN-vf41[3];struct-GS_OUT-vf41;): 2 Function None 15
277 16(i): 12(ptr) FunctionParameter
278 17(ts): 14(ptr) FunctionParameter
279 19: Label
280 22(x): 21(ptr) Variable Function
281 33(o): 14(ptr) Variable Function
282 Store 22(x) 23
283 Branch 24
284 24: Label
285 LoopMerge 26 27 None
286 Branch 28
287 28: Label
288 29: 20(int) Load 22(x)
289 32: 31(bool) SLessThan 29 30
290 BranchConditional 32 25 26
291 25: Label
292 34: 20(int) Load 22(x)
293 36: 35(ptr) AccessChain 16(i) 34 23
294 37: 7(fvec4) Load 36
295 38: 35(ptr) AccessChain 33(o) 23
296 Store 38 37
steve-lunarg08e0c082017-03-29 20:01:13 -0600297 41: 35(ptr) AccessChain 33(o) 23
298 42: 7(fvec4) Load 41
John Kesseniche516d432017-08-09 14:29:29 -0600299 Store 40(ts.pos) 42
steve-lunarg132d3312016-12-19 15:48:01 -0700300 EmitVertex
steve-lunargec712eb2017-02-02 16:32:02 -0700301 Branch 27
302 27: Label
steve-lunarg08e0c082017-03-29 20:01:13 -0600303 43: 20(int) Load 22(x)
304 45: 20(int) IAdd 43 44
305 Store 22(x) 45
steve-lunargec712eb2017-02-02 16:32:02 -0700306 Branch 24
307 26: Label
steve-lunarg132d3312016-12-19 15:48:01 -0700308 Return
309 FunctionEnd