1 hlsl.loopattr.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:3 Function Definition: @main( ( temp 4-component vector of float) 6 0:3 Function Parameters: 7 0:? Sequence 8 0:5 Sequence 9 0:5 move second child to first child ( temp int) 10 0:5 'x' ( temp int) 11 0:5 Constant: 12 0:5 0 (const int) 13 0:5 Loop with condition tested first: Unroll 14 0:5 Loop Condition 15 0:5 Compare Less Than ( temp bool) 16 0:5 'x' ( temp int) 17 0:5 Constant: 18 0:5 5 (const int) 19 0:5 No loop body 20 0:5 Loop Terminal Expression 21 0:5 Pre-Increment ( temp int) 22 0:5 'x' ( temp int) 23 0:8 Sequence 24 0:8 move second child to first child ( temp int) 25 0:8 'y' ( temp int) 26 0:8 Constant: 27 0:8 0 (const int) 28 0:8 Loop with condition tested first: DontUnroll 29 0:8 Loop Condition 30 0:8 Compare Less Than ( temp bool) 31 0:8 'y' ( temp int) 32 0:8 Constant: 33 0:8 5 (const int) 34 0:8 No loop body 35 0:8 Loop Terminal Expression 36 0:8 Pre-Increment ( temp int) 37 0:8 'y' ( temp int) 38 0:11 Sequence 39 0:11 move second child to first child ( temp int) 40 0:11 'z' ( temp int) 41 0:11 Constant: 42 0:11 0 (const int) 43 0:11 Loop with condition tested first 44 0:11 Loop Condition 45 0:11 Compare Less Than ( temp bool) 46 0:11 'z' ( temp int) 47 0:11 Constant: 48 0:11 5 (const int) 49 0:11 No loop body 50 0:11 Loop Terminal Expression 51 0:11 Pre-Increment ( temp int) 52 0:11 'z' ( temp int) 53 0:13 Branch: Return with expression 54 0:13 Constant: 55 0:13 0.000000 56 0:13 0.000000 57 0:13 0.000000 58 0:13 0.000000 59 0:3 Function Definition: main( ( temp void) 60 0:3 Function Parameters: 61 0:? Sequence 62 0:3 move second child to first child ( temp 4-component vector of float) 63 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 64 0:3 Function Call: @main( ( temp 4-component vector of float) 65 0:? Linker Objects 66 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 67 68 69 Linked fragment stage: 70 71 72 Shader version: 500 73 gl_FragCoord origin is upper left 74 0:? Sequence 75 0:3 Function Definition: @main( ( temp 4-component vector of float) 76 0:3 Function Parameters: 77 0:? Sequence 78 0:5 Sequence 79 0:5 move second child to first child ( temp int) 80 0:5 'x' ( temp int) 81 0:5 Constant: 82 0:5 0 (const int) 83 0:5 Loop with condition tested first: Unroll 84 0:5 Loop Condition 85 0:5 Compare Less Than ( temp bool) 86 0:5 'x' ( temp int) 87 0:5 Constant: 88 0:5 5 (const int) 89 0:5 No loop body 90 0:5 Loop Terminal Expression 91 0:5 Pre-Increment ( temp int) 92 0:5 'x' ( temp int) 93 0:8 Sequence 94 0:8 move second child to first child ( temp int) 95 0:8 'y' ( temp int) 96 0:8 Constant: 97 0:8 0 (const int) 98 0:8 Loop with condition tested first: DontUnroll 99 0:8 Loop Condition 100 0:8 Compare Less Than ( temp bool) 101 0:8 'y' ( temp int) 102 0:8 Constant: 103 0:8 5 (const int) 104 0:8 No loop body 105 0:8 Loop Terminal Expression 106 0:8 Pre-Increment ( temp int) 107 0:8 'y' ( temp int) 108 0:11 Sequence 109 0:11 move second child to first child ( temp int) 110 0:11 'z' ( temp int) 111 0:11 Constant: 112 0:11 0 (const int) 113 0:11 Loop with condition tested first 114 0:11 Loop Condition 115 0:11 Compare Less Than ( temp bool) 116 0:11 'z' ( temp int) 117 0:11 Constant: 118 0:11 5 (const int) 119 0:11 No loop body 120 0:11 Loop Terminal Expression 121 0:11 Pre-Increment ( temp int) 122 0:11 'z' ( temp int) 123 0:13 Branch: Return with expression 124 0:13 Constant: 125 0:13 0.000000 126 0:13 0.000000 127 0:13 0.000000 128 0:13 0.000000 129 0:3 Function Definition: main( ( temp void) 130 0:3 Function Parameters: 131 0:? Sequence 132 0:3 move second child to first child ( temp 4-component vector of float) 133 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 134 0:3 Function Call: @main( ( temp 4-component vector of float) 135 0:? Linker Objects 136 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 137 138 // Module Version 10000 139 // Generated by (magic number): 80007 140 // Id's are bound by 54 141 142 Capability Shader 143 1: ExtInstImport "GLSL.std.450" 144 MemoryModel Logical GLSL450 145 EntryPoint Fragment 4 "main" 52 146 ExecutionMode 4 OriginUpperLeft 147 Source HLSL 500 148 Name 4 "main" 149 Name 9 "@main(" 150 Name 13 "x" 151 Name 27 "y" 152 Name 37 "z" 153 Name 52 "@entryPointOutput" 154 Decorate 52(@entryPointOutput) Location 0 155 2: TypeVoid 156 3: TypeFunction 2 157 6: TypeFloat 32 158 7: TypeVector 6(float) 4 159 8: TypeFunction 7(fvec4) 160 11: TypeInt 32 1 161 12: TypePointer Function 11(int) 162 14: 11(int) Constant 0 163 21: 11(int) Constant 5 164 22: TypeBool 165 25: 11(int) Constant 1 166 47: 6(float) Constant 0 167 48: 7(fvec4) ConstantComposite 47 47 47 47 168 51: TypePointer Output 7(fvec4) 169 52(@entryPointOutput): 51(ptr) Variable Output 170 4(main): 2 Function None 3 171 5: Label 172 53: 7(fvec4) FunctionCall 9(@main() 173 Store 52(@entryPointOutput) 53 174 Return 175 FunctionEnd 176 9(@main(): 7(fvec4) Function None 8 177 10: Label 178 13(x): 12(ptr) Variable Function 179 27(y): 12(ptr) Variable Function 180 37(z): 12(ptr) Variable Function 181 Store 13(x) 14 182 Branch 15 183 15: Label 184 LoopMerge 17 18 Unroll 185 Branch 19 186 19: Label 187 20: 11(int) Load 13(x) 188 23: 22(bool) SLessThan 20 21 189 BranchConditional 23 16 17 190 16: Label 191 Branch 18 192 18: Label 193 24: 11(int) Load 13(x) 194 26: 11(int) IAdd 24 25 195 Store 13(x) 26 196 Branch 15 197 17: Label 198 Store 27(y) 14 199 Branch 28 200 28: Label 201 LoopMerge 30 31 DontUnroll 202 Branch 32 203 32: Label 204 33: 11(int) Load 27(y) 205 34: 22(bool) SLessThan 33 21 206 BranchConditional 34 29 30 207 29: Label 208 Branch 31 209 31: Label 210 35: 11(int) Load 27(y) 211 36: 11(int) IAdd 35 25 212 Store 27(y) 36 213 Branch 28 214 30: Label 215 Store 37(z) 14 216 Branch 38 217 38: Label 218 LoopMerge 40 41 None 219 Branch 42 220 42: Label 221 43: 11(int) Load 37(z) 222 44: 22(bool) SLessThan 43 21 223 BranchConditional 44 39 40 224 39: Label 225 Branch 41 226 41: Label 227 45: 11(int) Load 37(z) 228 46: 11(int) IAdd 45 25 229 Store 37(z) 46 230 Branch 38 231 40: Label 232 ReturnValue 48 233 FunctionEnd 234