1hlsl.w-recip.frag 2Shader version: 500 3gl_FragCoord origin is upper left 40:? Sequence 50:5 Function Definition: @main(vf4; ( temp 4-component vector of float) 60:5 Function Parameters: 70:5 'vpos' ( in 4-component vector of float) 80:? Sequence 90:6 Sequence 100:6 move second child to first child ( temp 4-component vector of float) 110:6 'vpos_t' ( temp 4-component vector of float) 120:6 Construct vec4 ( temp 4-component vector of float) 130:6 vector swizzle ( temp 3-component vector of float) 140:6 'vpos' ( in 4-component vector of float) 150:6 Sequence 160:6 Constant: 170:6 0 (const int) 180:6 Constant: 190:6 1 (const int) 200:6 Constant: 210:6 2 (const int) 220:6 divide ( temp float) 230:6 Constant: 240:6 1.000000 250:6 direct index ( temp float) 260:6 'vpos' ( in 4-component vector of float) 270:6 Constant: 280:6 3 (const int) 290:7 Test condition and select ( temp void) 300:7 Condition 310:7 Compare Less Than ( temp bool) 320:7 direct index ( temp float) 330:7 'vpos_t' ( temp 4-component vector of float) 340:7 Constant: 350:7 0 (const int) 360:7 Constant: 370:7 400.000000 380:7 true case 390:8 Branch: Return with expression 400:8 AmbientColor: direct index for structure ( uniform 4-component vector of float) 410:8 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float AmbientColor, uniform 4-component vector of float AmbientColor2}) 420:8 Constant: 430:8 0 (const uint) 440:7 false case 450:10 Branch: Return with expression 460:10 AmbientColor2: direct index for structure ( uniform 4-component vector of float) 470:10 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float AmbientColor, uniform 4-component vector of float AmbientColor2}) 480:10 Constant: 490:10 1 (const uint) 500:5 Function Definition: main( ( temp void) 510:5 Function Parameters: 520:? Sequence 530:5 move second child to first child ( temp 4-component vector of float) 540:? 'vpos' ( temp 4-component vector of float) 550:5 Construct vec4 ( temp 4-component vector of float) 560:5 vector swizzle ( temp 3-component vector of float) 570:? 'vpos' ( in 4-component vector of float FragCoord) 580:5 Sequence 590:5 Constant: 600:5 0 (const int) 610:5 Constant: 620:5 1 (const int) 630:5 Constant: 640:5 2 (const int) 650:5 divide ( temp float) 660:5 Constant: 670:5 1.000000 680:5 direct index ( temp float) 690:? 'vpos' ( in 4-component vector of float FragCoord) 700:5 Constant: 710:5 3 (const int) 720:5 move second child to first child ( temp 4-component vector of float) 730:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 740:5 Function Call: @main(vf4; ( temp 4-component vector of float) 750:? 'vpos' ( temp 4-component vector of float) 760:? Linker Objects 770:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float AmbientColor, uniform 4-component vector of float AmbientColor2}) 780:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 790:? 'vpos' ( in 4-component vector of float FragCoord) 80 81 82Linked fragment stage: 83 84 85Shader version: 500 86gl_FragCoord origin is upper left 870:? Sequence 880:5 Function Definition: @main(vf4; ( temp 4-component vector of float) 890:5 Function Parameters: 900:5 'vpos' ( in 4-component vector of float) 910:? Sequence 920:6 Sequence 930:6 move second child to first child ( temp 4-component vector of float) 940:6 'vpos_t' ( temp 4-component vector of float) 950:6 Construct vec4 ( temp 4-component vector of float) 960:6 vector swizzle ( temp 3-component vector of float) 970:6 'vpos' ( in 4-component vector of float) 980:6 Sequence 990:6 Constant: 1000:6 0 (const int) 1010:6 Constant: 1020:6 1 (const int) 1030:6 Constant: 1040:6 2 (const int) 1050:6 divide ( temp float) 1060:6 Constant: 1070:6 1.000000 1080:6 direct index ( temp float) 1090:6 'vpos' ( in 4-component vector of float) 1100:6 Constant: 1110:6 3 (const int) 1120:7 Test condition and select ( temp void) 1130:7 Condition 1140:7 Compare Less Than ( temp bool) 1150:7 direct index ( temp float) 1160:7 'vpos_t' ( temp 4-component vector of float) 1170:7 Constant: 1180:7 0 (const int) 1190:7 Constant: 1200:7 400.000000 1210:7 true case 1220:8 Branch: Return with expression 1230:8 AmbientColor: direct index for structure ( uniform 4-component vector of float) 1240:8 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float AmbientColor, uniform 4-component vector of float AmbientColor2}) 1250:8 Constant: 1260:8 0 (const uint) 1270:7 false case 1280:10 Branch: Return with expression 1290:10 AmbientColor2: direct index for structure ( uniform 4-component vector of float) 1300:10 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float AmbientColor, uniform 4-component vector of float AmbientColor2}) 1310:10 Constant: 1320:10 1 (const uint) 1330:5 Function Definition: main( ( temp void) 1340:5 Function Parameters: 1350:? Sequence 1360:5 move second child to first child ( temp 4-component vector of float) 1370:? 'vpos' ( temp 4-component vector of float) 1380:5 Construct vec4 ( temp 4-component vector of float) 1390:5 vector swizzle ( temp 3-component vector of float) 1400:? 'vpos' ( in 4-component vector of float FragCoord) 1410:5 Sequence 1420:5 Constant: 1430:5 0 (const int) 1440:5 Constant: 1450:5 1 (const int) 1460:5 Constant: 1470:5 2 (const int) 1480:5 divide ( temp float) 1490:5 Constant: 1500:5 1.000000 1510:5 direct index ( temp float) 1520:? 'vpos' ( in 4-component vector of float FragCoord) 1530:5 Constant: 1540:5 3 (const int) 1550:5 move second child to first child ( temp 4-component vector of float) 1560:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 1570:5 Function Call: @main(vf4; ( temp 4-component vector of float) 1580:? 'vpos' ( temp 4-component vector of float) 1590:? Linker Objects 1600:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float AmbientColor, uniform 4-component vector of float AmbientColor2}) 1610:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 1620:? 'vpos' ( in 4-component vector of float FragCoord) 163 164// Module Version 10000 165// Generated by (magic number): 8000b 166// Id's are bound by 69 167 168 Capability Shader 169 1: ExtInstImport "GLSL.std.450" 170 MemoryModel Logical GLSL450 171 EntryPoint Fragment 4 "main" 53 65 172 ExecutionMode 4 OriginUpperLeft 173 Source HLSL 500 174 Name 4 "main" 175 Name 11 "@main(vf4;" 176 Name 10 "vpos" 177 Name 13 "vpos_t" 178 Name 36 "$Global" 179 MemberName 36($Global) 0 "AmbientColor" 180 MemberName 36($Global) 1 "AmbientColor2" 181 Name 38 "" 182 Name 51 "vpos" 183 Name 53 "vpos" 184 Name 65 "@entryPointOutput" 185 Name 66 "param" 186 Decorate 36($Global) Block 187 MemberDecorate 36($Global) 0 Offset 0 188 MemberDecorate 36($Global) 1 Offset 16 189 Decorate 38 Binding 0 190 Decorate 38 DescriptorSet 0 191 Decorate 53(vpos) BuiltIn FragCoord 192 Decorate 65(@entryPointOutput) Location 0 193 2: TypeVoid 194 3: TypeFunction 2 195 6: TypeFloat 32 196 7: TypeVector 6(float) 4 197 8: TypePointer Function 7(fvec4) 198 9: TypeFunction 7(fvec4) 8(ptr) 199 14: TypeVector 6(float) 3 200 17: 6(float) Constant 1065353216 201 18: TypeInt 32 0 202 19: 18(int) Constant 3 203 20: TypePointer Function 6(float) 204 28: 18(int) Constant 0 205 31: 6(float) Constant 1137180672 206 32: TypeBool 207 36($Global): TypeStruct 7(fvec4) 7(fvec4) 208 37: TypePointer Uniform 36($Global) 209 38: 37(ptr) Variable Uniform 210 39: TypeInt 32 1 211 40: 39(int) Constant 0 212 41: TypePointer Uniform 7(fvec4) 213 46: 39(int) Constant 1 214 52: TypePointer Input 7(fvec4) 215 53(vpos): 52(ptr) Variable Input 216 56: TypePointer Input 6(float) 217 64: TypePointer Output 7(fvec4) 21865(@entryPointOutput): 64(ptr) Variable Output 219 4(main): 2 Function None 3 220 5: Label 221 51(vpos): 8(ptr) Variable Function 222 66(param): 8(ptr) Variable Function 223 54: 7(fvec4) Load 53(vpos) 224 55: 14(fvec3) VectorShuffle 54 54 0 1 2 225 57: 56(ptr) AccessChain 53(vpos) 19 226 58: 6(float) Load 57 227 59: 6(float) FDiv 17 58 228 60: 6(float) CompositeExtract 55 0 229 61: 6(float) CompositeExtract 55 1 230 62: 6(float) CompositeExtract 55 2 231 63: 7(fvec4) CompositeConstruct 60 61 62 59 232 Store 51(vpos) 63 233 67: 7(fvec4) Load 51(vpos) 234 Store 66(param) 67 235 68: 7(fvec4) FunctionCall 11(@main(vf4;) 66(param) 236 Store 65(@entryPointOutput) 68 237 Return 238 FunctionEnd 239 11(@main(vf4;): 7(fvec4) Function None 9 240 10(vpos): 8(ptr) FunctionParameter 241 12: Label 242 13(vpos_t): 8(ptr) Variable Function 243 15: 7(fvec4) Load 10(vpos) 244 16: 14(fvec3) VectorShuffle 15 15 0 1 2 245 21: 20(ptr) AccessChain 10(vpos) 19 246 22: 6(float) Load 21 247 23: 6(float) FDiv 17 22 248 24: 6(float) CompositeExtract 16 0 249 25: 6(float) CompositeExtract 16 1 250 26: 6(float) CompositeExtract 16 2 251 27: 7(fvec4) CompositeConstruct 24 25 26 23 252 Store 13(vpos_t) 27 253 29: 20(ptr) AccessChain 13(vpos_t) 28 254 30: 6(float) Load 29 255 33: 32(bool) FOrdLessThan 30 31 256 SelectionMerge 35 None 257 BranchConditional 33 34 45 258 34: Label 259 42: 41(ptr) AccessChain 38 40 260 43: 7(fvec4) Load 42 261 ReturnValue 43 262 45: Label 263 47: 41(ptr) AccessChain 38 46 264 48: 7(fvec4) Load 47 265 ReturnValue 48 266 35: Label 267 Unreachable 268 FunctionEnd 269