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