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 37(@entryPointOutput) Location 0 105 2: TypeVoid 106 3: TypeFunction 2 107 6: TypeFloat 32 108 7: TypeVector 6(float) 4 109 8: TypeFunction 7(fvec4) 110 11: TypeInt 32 1 111 12: TypePointer Function 11(int) 112 14: 11(int) Constant 0 113 21($Global): TypeStruct 11(int) 114 22: TypePointer Uniform 21($Global) 115 23: 22(ptr) Variable Uniform 116 24: TypePointer Uniform 11(int) 117 27: TypeBool 118 30: 11(int) Constant 1 119 32: 6(float) Constant 0 120 33: 7(fvec4) ConstantComposite 32 32 32 32 121 36: TypePointer Output 7(fvec4) 12237(@entryPointOutput): 36(ptr) Variable Output 123 4(main): 2 Function None 3 124 5: Label 125 38: 7(fvec4) FunctionCall 9(@main() 126 Store 37(@entryPointOutput) 38 127 Return 128 FunctionEnd 129 9(@main(): 7(fvec4) Function None 8 130 10: Label 131 13(x): 12(ptr) Variable Function 132 Store 13(x) 14 133 Branch 15 134 15: Label 135 LoopMerge 17 18 Unroll 136 Branch 19 137 19: Label 138 20: 11(int) Load 13(x) 139 25: 24(ptr) AccessChain 23 14 140 26: 11(int) Load 25 141 28: 27(bool) SLessThan 20 26 142 BranchConditional 28 16 17 143 16: Label 144 Branch 18 145 18: Label 146 29: 11(int) Load 13(x) 147 31: 11(int) IAdd 29 30 148 Store 13(x) 31 149 Branch 15 150 17: Label 151 ReturnValue 33 152 FunctionEnd 153