1spv.earlyReturnDiscard.frag 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 110 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 39 51 63 105 109 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 39 "minimum" 22 Name 51 "threshhold" 23 Name 63 "threshhold2" 24 Name 77 "b" 25 Name 105 "gl_FragColor" 26 Name 109 "threshhold3" 27 Decorate 11(BaseColor) Location 9 28 Decorate 14(otherColor) Location 3 29 Decorate 17(c) Location 4 30 Decorate 19(d) Location 0 31 Decorate 25(bigColor) Location 1 32 Decorate 30(smallColor) Location 2 33 Decorate 39(minimum) Location 8 34 Decorate 51(threshhold) Location 5 35 Decorate 63(threshhold2) Location 6 36 Decorate 105(gl_FragColor) Location 0 37 Decorate 109(threshhold3) Location 7 38 2: TypeVoid 39 3: TypeFunction 2 40 6: TypeFloat 32 41 7: TypeVector 6(float) 4 42 8: TypePointer Function 7(fvec4) 43 10: TypePointer Input 7(fvec4) 44 11(BaseColor): 10(ptr) Variable Input 45 14(otherColor): 10(ptr) Variable Input 46 16: TypePointer Input 6(float) 47 17(c): 16(ptr) Variable Input 48 19(d): 16(ptr) Variable Input 49 21: TypeBool 50 25(bigColor): 10(ptr) Variable Input 51 30(smallColor): 10(ptr) Variable Input 52 34: TypeInt 32 0 53 35: 34(int) Constant 2 54 36: TypePointer Function 6(float) 55 39(minimum): 16(ptr) Variable Input 56 47: 6(float) Constant 1065353216 57 51(threshhold): 16(ptr) Variable Input 58 60: 34(int) Constant 3 59 63(threshhold2): 16(ptr) Variable Input 60 76: TypePointer Private 21(bool) 61 77(b): 76(ptr) Variable Private 62 85: 34(int) Constant 0 63 104: TypePointer Output 7(fvec4) 64105(gl_FragColor): 104(ptr) Variable Output 65109(threshhold3): 16(ptr) Variable Input 66 4(main): 2 Function None 3 67 5: Label 68 9(color): 8(ptr) Variable Function 69 13(color2): 8(ptr) Variable Function 70 12: 7(fvec4) Load 11(BaseColor) 71 Store 9(color) 12 72 15: 7(fvec4) Load 14(otherColor) 73 Store 13(color2) 15 74 18: 6(float) Load 17(c) 75 20: 6(float) Load 19(d) 76 22: 21(bool) FOrdGreaterThan 18 20 77 SelectionMerge 24 None 78 BranchConditional 22 23 29 79 23: Label 80 26: 7(fvec4) Load 25(bigColor) 81 27: 7(fvec4) Load 9(color) 82 28: 7(fvec4) FAdd 27 26 83 Store 9(color) 28 84 Branch 24 85 29: Label 86 31: 7(fvec4) Load 30(smallColor) 87 32: 7(fvec4) Load 9(color) 88 33: 7(fvec4) FAdd 32 31 89 Store 9(color) 33 90 Branch 24 91 24: Label 92 37: 36(ptr) AccessChain 9(color) 35 93 38: 6(float) Load 37 94 40: 6(float) Load 39(minimum) 95 41: 21(bool) FOrdLessThan 38 40 96 SelectionMerge 43 None 97 BranchConditional 41 42 43 98 42: Label 99 Return 100 43: Label 101 45: 36(ptr) AccessChain 9(color) 35 102 46: 6(float) Load 45 103 48: 6(float) FAdd 46 47 104 Store 45 48 105 49: 36(ptr) AccessChain 9(color) 35 106 50: 6(float) Load 49 107 52: 6(float) Load 51(threshhold) 108 53: 21(bool) FOrdGreaterThan 50 52 109 SelectionMerge 55 None 110 BranchConditional 53 54 55 111 54: Label 112 Kill 113 55: Label 114 57: 7(fvec4) Load 9(color) 115 58: 7(fvec4) CompositeConstruct 47 47 47 47 116 59: 7(fvec4) FAdd 57 58 117 Store 9(color) 59 118 61: 36(ptr) AccessChain 9(color) 60 119 62: 6(float) Load 61 120 64: 6(float) Load 63(threshhold2) 121 65: 21(bool) FOrdGreaterThan 62 64 122 SelectionMerge 67 None 123 BranchConditional 65 66 97 124 66: Label 125 68: 36(ptr) AccessChain 9(color) 35 126 69: 6(float) Load 68 127 70: 6(float) Load 63(threshhold2) 128 71: 21(bool) FOrdGreaterThan 69 70 129 SelectionMerge 73 None 130 BranchConditional 71 72 75 131 72: Label 132 Return 133 75: Label 134 78: 21(bool) Load 77(b) 135 SelectionMerge 80 None 136 BranchConditional 78 79 84 137 79: Label 138 81: 36(ptr) AccessChain 9(color) 35 139 82: 6(float) Load 81 140 83: 6(float) FAdd 82 47 141 Store 81 83 142 Branch 80 143 84: Label 144 86: 36(ptr) AccessChain 9(color) 85 145 87: 6(float) Load 86 146 88: 6(float) Load 39(minimum) 147 89: 21(bool) FOrdLessThan 87 88 148 SelectionMerge 91 None 149 BranchConditional 89 90 93 150 90: Label 151 Kill 152 93: Label 153 94: 7(fvec4) Load 9(color) 154 95: 7(fvec4) CompositeConstruct 47 47 47 47 155 96: 7(fvec4) FAdd 94 95 156 Store 9(color) 96 157 Branch 91 158 91: Label 159 Branch 80 160 80: Label 161 Branch 73 162 73: Label 163 Branch 67 164 97: Label 165 98: 21(bool) Load 77(b) 166 SelectionMerge 100 None 167 BranchConditional 98 99 102 168 99: Label 169 Kill 170 102: Label 171 Return 172 100: Label 173 Unreachable 174 67: Label 175 106: 7(fvec4) Load 9(color) 176 107: 7(fvec4) Load 13(color2) 177 108: 7(fvec4) FMul 106 107 178 Store 105(gl_FragColor) 108 179 Return 180 FunctionEnd 181