1hlsl.attribute.expression.comp 2Shader version: 500 3local_size = (4, 6, 8) 40:? Sequence 50:9 Function Definition: @main( ( temp 4-component vector of float) 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:14 Branch: Return with expression 260:? Constant: 270:? 0.000000 280:? 0.000000 290:? 0.000000 300:? 0.000000 310:9 Function Definition: main( ( temp void) 320:9 Function Parameters: 330:? Sequence 340:9 move second child to first child ( temp 4-component vector of float) 350:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 360:9 Function Call: @main( ( temp 4-component vector of float) 370:? Linker Objects 380:? 'anon@0' (layout( row_major std140) uniform block{ uniform int bound}) 390:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 40 41 42Linked compute stage: 43 44 45Shader version: 500 46local_size = (4, 6, 8) 470:? Sequence 480:9 Function Definition: @main( ( temp 4-component vector of float) 490:9 Function Parameters: 500:? Sequence 510:11 Sequence 520:11 move second child to first child ( temp int) 530:11 'x' ( temp int) 540:11 Constant: 550:11 0 (const int) 560:11 Loop with condition tested first: Unroll 570:11 Loop Condition 580:11 Compare Less Than ( temp bool) 590:11 'x' ( temp int) 600:11 bound: direct index for structure ( uniform int) 610:11 'anon@0' (layout( row_major std140) uniform block{ uniform int bound}) 620:11 Constant: 630:11 0 (const uint) 640:11 No loop body 650:11 Loop Terminal Expression 660:11 Pre-Increment ( temp int) 670:11 'x' ( temp int) 680:14 Branch: Return with expression 690:? Constant: 700:? 0.000000 710:? 0.000000 720:? 0.000000 730:? 0.000000 740:9 Function Definition: main( ( temp void) 750:9 Function Parameters: 760:? Sequence 770:9 move second child to first child ( temp 4-component vector of float) 780:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 790:9 Function Call: @main( ( temp 4-component vector of float) 800:? Linker Objects 810:? 'anon@0' (layout( row_major std140) uniform block{ uniform int bound}) 820:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 83 84// Module Version 10000 85// Generated by (magic number): 80007 86// Id's are bound by 39 87 88 Capability Shader 89 1: ExtInstImport "GLSL.std.450" 90 MemoryModel Logical GLSL450 91 EntryPoint GLCompute 4 "main" 37 92 ExecutionMode 4 LocalSize 4 6 8 93 Source HLSL 500 94 Name 4 "main" 95 Name 9 "@main(" 96 Name 13 "x" 97 Name 21 "$Global" 98 MemberName 21($Global) 0 "bound" 99 Name 23 "" 100 Name 37 "@entryPointOutput" 101 MemberDecorate 21($Global) 0 Offset 0 102 Decorate 21($Global) Block 103 Decorate 23 DescriptorSet 0 104 Decorate 23 Binding 0 105 Decorate 37(@entryPointOutput) Location 0 106 2: TypeVoid 107 3: TypeFunction 2 108 6: TypeFloat 32 109 7: TypeVector 6(float) 4 110 8: TypeFunction 7(fvec4) 111 11: TypeInt 32 1 112 12: TypePointer Function 11(int) 113 14: 11(int) Constant 0 114 21($Global): TypeStruct 11(int) 115 22: TypePointer Uniform 21($Global) 116 23: 22(ptr) Variable Uniform 117 24: TypePointer Uniform 11(int) 118 27: TypeBool 119 30: 11(int) Constant 1 120 32: 6(float) Constant 0 121 33: 7(fvec4) ConstantComposite 32 32 32 32 122 36: TypePointer Output 7(fvec4) 12337(@entryPointOutput): 36(ptr) Variable Output 124 4(main): 2 Function None 3 125 5: Label 126 38: 7(fvec4) FunctionCall 9(@main() 127 Store 37(@entryPointOutput) 38 128 Return 129 FunctionEnd 130 9(@main(): 7(fvec4) Function None 8 131 10: Label 132 13(x): 12(ptr) Variable Function 133 Store 13(x) 14 134 Branch 15 135 15: Label 136 LoopMerge 17 18 Unroll 137 Branch 19 138 19: Label 139 20: 11(int) Load 13(x) 140 25: 24(ptr) AccessChain 23 14 141 26: 11(int) Load 25 142 28: 27(bool) SLessThan 20 26 143 BranchConditional 28 16 17 144 16: Label 145 Branch 18 146 18: Label 147 29: 11(int) Load 13(x) 148 31: 11(int) IAdd 29 30 149 Store 13(x) 31 150 Branch 15 151 17: Label 152 ReturnValue 33 153 FunctionEnd 154