1hlsl.attribute.expression.comp
2Shader version: 500
3local_size = (4, 6, 8)
40:? Sequence
50:9  Function Definition: @main( ( temp void)
60:9    Function Parameters:
70:?     Sequence
80:11      Sequence
90:11        move second child to first child ( temp int)
100:11          'x' ( temp int)
110:11          Constant:
120:11            0 (const int)
130:11        Loop with condition tested first: Unroll
140:11          Loop Condition
150:11          Compare Less Than ( temp bool)
160:11            'x' ( temp int)
170:11            bound: direct index for structure ( uniform int)
180:11              'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
190:11              Constant:
200:11                0 (const uint)
210:11          No loop body
220:11          Loop Terminal Expression
230:11          Pre-Increment ( temp int)
240:11            'x' ( temp int)
250:9  Function Definition: main( ( temp void)
260:9    Function Parameters:
270:?     Sequence
280:9      Function Call: @main( ( temp void)
290:?   Linker Objects
300:?     'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
31
32
33Linked compute stage:
34
35
36Shader version: 500
37local_size = (4, 6, 8)
380:? Sequence
390:9  Function Definition: @main( ( temp void)
400:9    Function Parameters:
410:?     Sequence
420:11      Sequence
430:11        move second child to first child ( temp int)
440:11          'x' ( temp int)
450:11          Constant:
460:11            0 (const int)
470:11        Loop with condition tested first: Unroll
480:11          Loop Condition
490:11          Compare Less Than ( temp bool)
500:11            'x' ( temp int)
510:11            bound: direct index for structure ( uniform int)
520:11              'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
530:11              Constant:
540:11                0 (const uint)
550:11          No loop body
560:11          Loop Terminal Expression
570:11          Pre-Increment ( temp int)
580:11            'x' ( temp int)
590:9  Function Definition: main( ( temp void)
600:9    Function Parameters:
610:?     Sequence
620:9      Function Call: @main( ( temp void)
630:?   Linker Objects
640:?     'anon@0' (layout( row_major std140) uniform block{ uniform int bound})
65
66// Module Version 10000
67// Generated by (magic number): 8000b
68// Id's are bound by 30
69
70                              Capability Shader
71               1:             ExtInstImport  "GLSL.std.450"
72                              MemoryModel Logical GLSL450
73                              EntryPoint GLCompute 4  "main"
74                              ExecutionMode 4 LocalSize 4 6 8
75                              Source HLSL 500
76                              Name 4  "main"
77                              Name 6  "@main("
78                              Name 10  "x"
79                              Name 18  "$Global"
80                              MemberName 18($Global) 0  "bound"
81                              Name 20  ""
82                              Decorate 18($Global) Block
83                              MemberDecorate 18($Global) 0 Offset 0
84                              Decorate 20 Binding 0
85                              Decorate 20 DescriptorSet 0
86               2:             TypeVoid
87               3:             TypeFunction 2
88               8:             TypeInt 32 1
89               9:             TypePointer Function 8(int)
90              11:      8(int) Constant 0
91     18($Global):             TypeStruct 8(int)
92              19:             TypePointer Uniform 18($Global)
93              20:     19(ptr) Variable Uniform
94              21:             TypePointer Uniform 8(int)
95              24:             TypeBool
96              27:      8(int) Constant 1
97         4(main):           2 Function None 3
98               5:             Label
99              29:           2 FunctionCall 6(@main()
100                              Return
101                              FunctionEnd
102       6(@main():           2 Function None 3
103               7:             Label
104           10(x):      9(ptr) Variable Function
105                              Store 10(x) 11
106                              Branch 12
107              12:             Label
108                              LoopMerge 14 15 Unroll
109                              Branch 16
110              16:             Label
111              17:      8(int) Load 10(x)
112              22:     21(ptr) AccessChain 20 11
113              23:      8(int) Load 22
114              25:    24(bool) SLessThan 17 23
115                              BranchConditional 25 13 14
116              13:               Label
117                                Branch 15
118              15:               Label
119              26:      8(int)   Load 10(x)
120              28:      8(int)   IAdd 26 27
121                                Store 10(x) 28
122                                Branch 12
123              14:             Label
124                              Return
125                              FunctionEnd
126