1 hlsl.attribute.expression.comp 2 Shader version: 500 3 local_size = (4, 6, 8) 4 0:? Sequence 5 0:9 Function Definition: @main( ( temp 4-component vector of float) 6 0:9 Function Parameters: 7 0:? Sequence 8 0:11 Sequence 9 0:11 move second child to first child ( temp int) 10 0:11 'x' ( temp int) 11 0:11 Constant: 12 0:11 0 (const int) 13 0:11 Loop with condition tested first: Unroll 14 0:11 Loop Condition 15 0:11 Compare Less Than ( temp bool) 16 0:11 'x' ( temp int) 17 0:11 bound: direct index for structure ( uniform int) 18 0:11 'anon@0' (layout( row_major std140) uniform block{ uniform int bound}) 19 0:11 Constant: 20 0:11 0 (const uint) 21 0:11 No loop body 22 0:11 Loop Terminal Expression 23 0:11 Pre-Increment ( temp int) 24 0:11 'x' ( temp int) 25 0:14 Branch: Return with expression 26 0:? Constant: 27 0:? 0.000000 28 0:? 0.000000 29 0:? 0.000000 30 0:? 0.000000 31 0:9 Function Definition: main( ( temp void) 32 0:9 Function Parameters: 33 0:? Sequence 34 0:9 move second child to first child ( temp 4-component vector of float) 35 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 36 0:9 Function Call: @main( ( temp 4-component vector of float) 37 0:? Linker Objects 38 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int bound}) 39 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 40 41 42 Linked compute stage: 43 44 45 Shader version: 500 46 local_size = (4, 6, 8) 47 0:? Sequence 48 0:9 Function Definition: @main( ( temp 4-component vector of float) 49 0:9 Function Parameters: 50 0:? Sequence 51 0:11 Sequence 52 0:11 move second child to first child ( temp int) 53 0:11 'x' ( temp int) 54 0:11 Constant: 55 0:11 0 (const int) 56 0:11 Loop with condition tested first: Unroll 57 0:11 Loop Condition 58 0:11 Compare Less Than ( temp bool) 59 0:11 'x' ( temp int) 60 0:11 bound: direct index for structure ( uniform int) 61 0:11 'anon@0' (layout( row_major std140) uniform block{ uniform int bound}) 62 0:11 Constant: 63 0:11 0 (const uint) 64 0:11 No loop body 65 0:11 Loop Terminal Expression 66 0:11 Pre-Increment ( temp int) 67 0:11 'x' ( temp int) 68 0:14 Branch: Return with expression 69 0:? Constant: 70 0:? 0.000000 71 0:? 0.000000 72 0:? 0.000000 73 0:? 0.000000 74 0:9 Function Definition: main( ( temp void) 75 0:9 Function Parameters: 76 0:? Sequence 77 0:9 move second child to first child ( temp 4-component vector of float) 78 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 79 0:9 Function Call: @main( ( temp 4-component vector of float) 80 0:? Linker Objects 81 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int bound}) 82 0:? '@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) 123 37(@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