1 spv.flowControl.frag 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 39 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 11 14 17 19 25 30 35 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 140 12 Name 4 "main" 13 Name 9 "color" 14 Name 11 "BaseColor" 15 Name 13 "color2" 16 Name 14 "otherColor" 17 Name 17 "c" 18 Name 19 "d" 19 Name 25 "bigColor" 20 Name 30 "smallColor" 21 Name 35 "gl_FragColor" 22 Decorate 35(gl_FragColor) Location 0 23 2: TypeVoid 24 3: TypeFunction 2 25 6: TypeFloat 32 26 7: TypeVector 6(float) 4 27 8: TypePointer Function 7(fvec4) 28 10: TypePointer Input 7(fvec4) 29 11(BaseColor): 10(ptr) Variable Input 30 14(otherColor): 10(ptr) Variable Input 31 16: TypePointer Input 6(float) 32 17(c): 16(ptr) Variable Input 33 19(d): 16(ptr) Variable Input 34 21: TypeBool 35 25(bigColor): 10(ptr) Variable Input 36 30(smallColor): 10(ptr) Variable Input 37 34: TypePointer Output 7(fvec4) 38 35(gl_FragColor): 34(ptr) Variable Output 39 4(main): 2 Function None 3 40 5: Label 41 9(color): 8(ptr) Variable Function 42 13(color2): 8(ptr) Variable Function 43 12: 7(fvec4) Load 11(BaseColor) 44 Store 9(color) 12 45 15: 7(fvec4) Load 14(otherColor) 46 Store 13(color2) 15 47 18: 6(float) Load 17(c) 48 20: 6(float) Load 19(d) 49 22: 21(bool) FOrdGreaterThan 18 20 50 SelectionMerge 24 None 51 BranchConditional 22 23 29 52 23: Label 53 26: 7(fvec4) Load 25(bigColor) 54 27: 7(fvec4) Load 9(color) 55 28: 7(fvec4) FAdd 27 26 56 Store 9(color) 28 57 Branch 24 58 29: Label 59 31: 7(fvec4) Load 30(smallColor) 60 32: 7(fvec4) Load 9(color) 61 33: 7(fvec4) FAdd 32 31 62 Store 9(color) 33 63 Branch 24 64 24: Label 65 36: 7(fvec4) Load 9(color) 66 37: 7(fvec4) Load 13(color2) 67 38: 7(fvec4) FMul 36 37 68 Store 35(gl_FragColor) 38 69 Return 70 FunctionEnd 71