1spv.swizzle.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 117 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 14 30 78 116 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 140 12 Name 4 "main" 13 Name 8 "blendscale" 14 Name 12 "w" 15 Name 14 "u" 16 Name 16 "w_dep" 17 Name 18 "w_reorder" 18 Name 20 "w2" 19 Name 22 "w_flow" 20 Name 30 "t" 21 Name 56 "w_undef" 22 Name 65 "p" 23 Name 78 "gl_FragColor" 24 Name 90 "c" 25 Name 92 "rep" 26 Name 116 "blend" 27 Decorate 14(u) Location 1 28 Decorate 30(t) Location 2 29 Decorate 78(gl_FragColor) Location 0 30 Decorate 116(blend) Location 0 31 2: TypeVoid 32 3: TypeFunction 2 33 6: TypeFloat 32 34 7: TypePointer Function 6(float) 35 9: 6(float) Constant 1071971828 36 10: TypeVector 6(float) 4 37 11: TypePointer Function 10(fvec4) 38 13: TypePointer Input 10(fvec4) 39 14(u): 13(ptr) Variable Input 40 25: TypeInt 32 0 41 26: 25(int) Constant 2 42 28: TypeVector 6(float) 2 43 29: TypePointer Input 28(fvec2) 44 30(t): 29(ptr) Variable Input 45 32: 25(int) Constant 3 46 35: 25(int) Constant 1 47 39: 25(int) Constant 0 48 63: TypeBool 49 64: TypePointer Private 63(bool) 50 65(p): 64(ptr) Variable Private 51 69: TypePointer Input 6(float) 52 77: TypePointer Output 10(fvec4) 5378(gl_FragColor): 77(ptr) Variable Output 54 89: TypePointer Function 28(fvec2) 55 93: 6(float) Constant 0 56 94: 6(float) Constant 1065353216 57 95: 10(fvec4) ConstantComposite 93 93 93 94 58 101: 6(float) Constant 3212836864 59 111: 6(float) Constant 1079613850 60 116(blend): 69(ptr) Variable Input 61 4(main): 2 Function None 3 62 5: Label 63 8(blendscale): 7(ptr) Variable Function 64 12(w): 11(ptr) Variable Function 65 16(w_dep): 11(ptr) Variable Function 66 18(w_reorder): 11(ptr) Variable Function 67 20(w2): 11(ptr) Variable Function 68 22(w_flow): 11(ptr) Variable Function 69 56(w_undef): 11(ptr) Variable Function 70 90(c): 89(ptr) Variable Function 71 92(rep): 11(ptr) Variable Function 72 Store 8(blendscale) 9 73 15: 10(fvec4) Load 14(u) 74 Store 12(w) 15 75 17: 10(fvec4) Load 14(u) 76 Store 16(w_dep) 17 77 19: 10(fvec4) Load 14(u) 78 Store 18(w_reorder) 19 79 21: 10(fvec4) Load 14(u) 80 Store 20(w2) 21 81 23: 10(fvec4) Load 14(u) 82 Store 22(w_flow) 23 83 24: 6(float) Load 8(blendscale) 84 27: 7(ptr) AccessChain 18(w_reorder) 26 85 Store 27 24 86 31: 28(fvec2) Load 30(t) 87 33: 7(ptr) AccessChain 12(w) 32 88 34: 6(float) CompositeExtract 31 0 89 Store 33 34 90 36: 7(ptr) AccessChain 12(w) 35 91 37: 6(float) CompositeExtract 31 1 92 Store 36 37 93 38: 6(float) Load 8(blendscale) 94 40: 7(ptr) AccessChain 18(w_reorder) 39 95 Store 40 38 96 41: 10(fvec4) Load 14(u) 97 42: 10(fvec4) VectorShuffle 41 41 2 3 0 1 98 Store 20(w2) 42 99 43: 6(float) Load 8(blendscale) 100 44: 7(ptr) AccessChain 18(w_reorder) 35 101 Store 44 43 102 45: 10(fvec4) Load 20(w2) 103 46: 28(fvec2) VectorShuffle 45 45 0 2 104 47: 7(ptr) AccessChain 16(w_dep) 39 105 48: 6(float) CompositeExtract 46 0 106 Store 47 48 107 49: 7(ptr) AccessChain 16(w_dep) 35 108 50: 6(float) CompositeExtract 46 1 109 Store 49 50 110 51: 28(fvec2) Load 30(t) 111 52: 7(ptr) AccessChain 16(w_dep) 26 112 53: 6(float) CompositeExtract 51 0 113 Store 52 53 114 54: 7(ptr) AccessChain 16(w_dep) 32 115 55: 6(float) CompositeExtract 51 1 116 Store 54 55 117 57: 10(fvec4) Load 14(u) 118 58: 28(fvec2) VectorShuffle 57 57 2 3 119 59: 7(ptr) AccessChain 56(w_undef) 39 120 60: 6(float) CompositeExtract 58 0 121 Store 59 60 122 61: 7(ptr) AccessChain 56(w_undef) 35 123 62: 6(float) CompositeExtract 58 1 124 Store 61 62 125 66: 63(bool) Load 65(p) 126 SelectionMerge 68 None 127 BranchConditional 66 67 73 128 67: Label 129 70: 69(ptr) AccessChain 30(t) 39 130 71: 6(float) Load 70 131 72: 7(ptr) AccessChain 22(w_flow) 39 132 Store 72 71 133 Branch 68 134 73: Label 135 74: 69(ptr) AccessChain 30(t) 35 136 75: 6(float) Load 74 137 76: 7(ptr) AccessChain 22(w_flow) 39 138 Store 76 75 139 Branch 68 140 68: Label 141 79: 10(fvec4) Load 18(w_reorder) 142 80: 10(fvec4) Load 56(w_undef) 143 81: 10(fvec4) Load 12(w) 144 82: 10(fvec4) Load 20(w2) 145 83: 10(fvec4) FMul 81 82 146 84: 10(fvec4) Load 16(w_dep) 147 85: 10(fvec4) FMul 83 84 148 86: 10(fvec4) Load 22(w_flow) 149 87: 10(fvec4) FMul 85 86 150 88: 10(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 79 80 87 151 Store 78(gl_FragColor) 88 152 91: 28(fvec2) Load 30(t) 153 Store 90(c) 91 154 Store 92(rep) 95 155 96: 7(ptr) AccessChain 90(c) 39 156 97: 6(float) Load 96 157 98: 63(bool) FOrdLessThan 97 93 158 SelectionMerge 100 None 159 BranchConditional 98 99 100 160 99: Label 161 102: 7(ptr) AccessChain 90(c) 39 162 103: 6(float) Load 102 163 104: 6(float) FMul 103 101 164 105: 7(ptr) AccessChain 90(c) 39 165 Store 105 104 166 Branch 100 167 100: Label 168 106: 7(ptr) AccessChain 90(c) 39 169 107: 6(float) Load 106 170 108: 63(bool) FOrdLessThanEqual 107 94 171 SelectionMerge 110 None 172 BranchConditional 108 109 110 173 109: Label 174 112: 7(ptr) AccessChain 92(rep) 39 175 Store 112 111 176 Branch 110 177 110: Label 178 113: 10(fvec4) Load 92(rep) 179 114: 10(fvec4) Load 78(gl_FragColor) 180 115: 10(fvec4) FAdd 114 113 181 Store 78(gl_FragColor) 115 182 Return 183 FunctionEnd 184