1spv.300layout.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 163 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Vertex 4 "main" 9 11 98 100 108 114 120 128 10 Source ESSL 310 11 Name 4 "main" 12 Name 9 "pos" 13 Name 11 "p" 14 Name 17 "Transform" 15 MemberName 17(Transform) 0 "M1" 16 MemberName 17(Transform) 1 "M2" 17 MemberName 17(Transform) 2 "N1" 18 MemberName 17(Transform) 3 "iuin" 19 Name 19 "tblock" 20 Name 45 "T3" 21 MemberName 45(T3) 0 "M3" 22 MemberName 45(T3) 1 "M4" 23 MemberName 45(T3) 2 "N2" 24 MemberName 45(T3) 3 "uv3a" 25 Name 47 "" 26 Name 78 "T2" 27 MemberName 78(T2) 0 "b" 28 MemberName 78(T2) 1 "t2m" 29 Name 80 "" 30 Name 98 "color" 31 Name 100 "c" 32 Name 108 "iout" 33 Name 114 "uiuin" 34 Name 120 "aiv2" 35 Name 126 "S" 36 MemberName 126(S) 0 "c" 37 MemberName 126(S) 1 "f" 38 Name 128 "s" 39 Decorate 9(pos) Location 0 40 Decorate 11(p) Location 3 41 MemberDecorate 17(Transform) 0 RowMajor 42 MemberDecorate 17(Transform) 0 Offset 0 43 MemberDecorate 17(Transform) 0 MatrixStride 16 44 MemberDecorate 17(Transform) 1 ColMajor 45 MemberDecorate 17(Transform) 1 Offset 64 46 MemberDecorate 17(Transform) 1 MatrixStride 16 47 MemberDecorate 17(Transform) 2 RowMajor 48 MemberDecorate 17(Transform) 2 Offset 128 49 MemberDecorate 17(Transform) 2 MatrixStride 16 50 MemberDecorate 17(Transform) 3 Offset 176 51 Decorate 17(Transform) Block 52 Decorate 19(tblock) DescriptorSet 0 53 Decorate 19(tblock) Binding 0 54 Decorate 44 ArrayStride 16 55 MemberDecorate 45(T3) 0 ColMajor 56 MemberDecorate 45(T3) 0 Offset 0 57 MemberDecorate 45(T3) 0 MatrixStride 16 58 MemberDecorate 45(T3) 1 RowMajor 59 MemberDecorate 45(T3) 1 Offset 64 60 MemberDecorate 45(T3) 1 MatrixStride 16 61 MemberDecorate 45(T3) 2 ColMajor 62 MemberDecorate 45(T3) 2 Offset 128 63 MemberDecorate 45(T3) 2 MatrixStride 16 64 MemberDecorate 45(T3) 3 Offset 2048 65 Decorate 45(T3) Block 66 Decorate 47 DescriptorSet 0 67 Decorate 47 Binding 2 68 MemberDecorate 78(T2) 0 Offset 0 69 MemberDecorate 78(T2) 1 RowMajor 70 MemberDecorate 78(T2) 1 Offset 16 71 MemberDecorate 78(T2) 1 MatrixStride 16 72 Decorate 78(T2) Block 73 Decorate 80 DescriptorSet 0 74 Decorate 80 Binding 1 75 Decorate 98(color) Location 1 76 Decorate 100(c) Location 7 77 Decorate 108(iout) Flat 78 Decorate 108(iout) Location 2 79 Decorate 114(uiuin) Location 0 80 Decorate 120(aiv2) Location 9 81 Decorate 128(s) Location 3 82 2: TypeVoid 83 3: TypeFunction 2 84 6: TypeFloat 32 85 7: TypeVector 6(float) 4 86 8: TypePointer Output 7(fvec4) 87 9(pos): 8(ptr) Variable Output 88 10: TypePointer Input 7(fvec4) 89 11(p): 10(ptr) Variable Input 90 13: TypeMatrix 7(fvec4) 4 91 14: TypeVector 6(float) 3 92 15: TypeMatrix 14(fvec3) 3 93 16: TypeInt 32 1 94 17(Transform): TypeStruct 13 13 15 16(int) 95 18: TypePointer Uniform 17(Transform) 96 19(tblock): 18(ptr) Variable Uniform 97 20: 16(int) Constant 0 98 21: TypePointer Uniform 13 99 24: 16(int) Constant 1 100 40: TypeMatrix 14(fvec3) 2 101 41: TypeInt 32 0 102 42: TypeVector 41(int) 3 103 43: 41(int) Constant 4 104 44: TypeArray 42(ivec3) 43 105 45(T3): TypeStruct 13 13 40 44 106 46: TypePointer Uniform 45(T3) 107 47: 46(ptr) Variable Uniform 108 78(T2): TypeStruct 41(int) 13 109 79: TypePointer Uniform 78(T2) 110 80: 79(ptr) Variable Uniform 111 97: TypePointer Output 14(fvec3) 112 98(color): 97(ptr) Variable Output 113 99: TypePointer Input 14(fvec3) 114 100(c): 99(ptr) Variable Input 115 102: 16(int) Constant 2 116 103: TypePointer Uniform 15 117 107: TypePointer Output 16(int) 118 108(iout): 107(ptr) Variable Output 119 109: 16(int) Constant 3 120 110: TypePointer Uniform 16(int) 121 113: TypePointer Input 41(int) 122 114(uiuin): 113(ptr) Variable Input 123 118: TypeVector 16(int) 2 124 119: TypePointer Input 118(ivec2) 125 120(aiv2): 119(ptr) Variable Input 126 121: 41(int) Constant 1 127 122: TypePointer Input 16(int) 128 126(S): TypeStruct 14(fvec3) 6(float) 129 127: TypePointer Output 126(S) 130 128(s): 127(ptr) Variable Output 131 131: 41(int) Constant 0 132 132: TypePointer Input 6(float) 133 135: TypePointer Output 6(float) 134 137: TypeBool 135 138: TypePointer Uniform 14(fvec3) 136 141: 6(float) Constant 1065353216 137 142: 14(fvec3) ConstantComposite 141 141 141 138 143: TypeVector 137(bool) 3 139 149: TypePointer Uniform 42(ivec3) 140 152: 41(int) Constant 5 141 153: 42(ivec3) ConstantComposite 152 152 152 142 4(main): 2 Function None 3 143 5: Label 144 12: 7(fvec4) Load 11(p) 145 22: 21(ptr) AccessChain 19(tblock) 20 146 23: 13 Load 22 147 25: 21(ptr) AccessChain 19(tblock) 24 148 26: 13 Load 25 149 27: 7(fvec4) CompositeExtract 23 0 150 28: 7(fvec4) CompositeExtract 26 0 151 29: 7(fvec4) FAdd 27 28 152 30: 7(fvec4) CompositeExtract 23 1 153 31: 7(fvec4) CompositeExtract 26 1 154 32: 7(fvec4) FAdd 30 31 155 33: 7(fvec4) CompositeExtract 23 2 156 34: 7(fvec4) CompositeExtract 26 2 157 35: 7(fvec4) FAdd 33 34 158 36: 7(fvec4) CompositeExtract 23 3 159 37: 7(fvec4) CompositeExtract 26 3 160 38: 7(fvec4) FAdd 36 37 161 39: 13 CompositeConstruct 29 32 35 38 162 48: 21(ptr) AccessChain 47 24 163 49: 13 Load 48 164 50: 7(fvec4) CompositeExtract 39 0 165 51: 7(fvec4) CompositeExtract 49 0 166 52: 7(fvec4) FAdd 50 51 167 53: 7(fvec4) CompositeExtract 39 1 168 54: 7(fvec4) CompositeExtract 49 1 169 55: 7(fvec4) FAdd 53 54 170 56: 7(fvec4) CompositeExtract 39 2 171 57: 7(fvec4) CompositeExtract 49 2 172 58: 7(fvec4) FAdd 56 57 173 59: 7(fvec4) CompositeExtract 39 3 174 60: 7(fvec4) CompositeExtract 49 3 175 61: 7(fvec4) FAdd 59 60 176 62: 13 CompositeConstruct 52 55 58 61 177 63: 21(ptr) AccessChain 47 20 178 64: 13 Load 63 179 65: 7(fvec4) CompositeExtract 62 0 180 66: 7(fvec4) CompositeExtract 64 0 181 67: 7(fvec4) FAdd 65 66 182 68: 7(fvec4) CompositeExtract 62 1 183 69: 7(fvec4) CompositeExtract 64 1 184 70: 7(fvec4) FAdd 68 69 185 71: 7(fvec4) CompositeExtract 62 2 186 72: 7(fvec4) CompositeExtract 64 2 187 73: 7(fvec4) FAdd 71 72 188 74: 7(fvec4) CompositeExtract 62 3 189 75: 7(fvec4) CompositeExtract 64 3 190 76: 7(fvec4) FAdd 74 75 191 77: 13 CompositeConstruct 67 70 73 76 192 81: 21(ptr) AccessChain 80 24 193 82: 13 Load 81 194 83: 7(fvec4) CompositeExtract 77 0 195 84: 7(fvec4) CompositeExtract 82 0 196 85: 7(fvec4) FAdd 83 84 197 86: 7(fvec4) CompositeExtract 77 1 198 87: 7(fvec4) CompositeExtract 82 1 199 88: 7(fvec4) FAdd 86 87 200 89: 7(fvec4) CompositeExtract 77 2 201 90: 7(fvec4) CompositeExtract 82 2 202 91: 7(fvec4) FAdd 89 90 203 92: 7(fvec4) CompositeExtract 77 3 204 93: 7(fvec4) CompositeExtract 82 3 205 94: 7(fvec4) FAdd 92 93 206 95: 13 CompositeConstruct 85 88 91 94 207 96: 7(fvec4) VectorTimesMatrix 12 95 208 Store 9(pos) 96 209 101: 14(fvec3) Load 100(c) 210 104: 103(ptr) AccessChain 19(tblock) 102 211 105: 15 Load 104 212 106: 14(fvec3) VectorTimesMatrix 101 105 213 Store 98(color) 106 214 111: 110(ptr) AccessChain 19(tblock) 109 215 112: 16(int) Load 111 216 115: 41(int) Load 114(uiuin) 217 116: 16(int) Bitcast 115 218 117: 16(int) IAdd 112 116 219 123: 122(ptr) AccessChain 120(aiv2) 121 220 124: 16(int) Load 123 221 125: 16(int) IAdd 117 124 222 Store 108(iout) 125 223 129: 14(fvec3) Load 100(c) 224 130: 97(ptr) AccessChain 128(s) 20 225 Store 130 129 226 133: 132(ptr) AccessChain 11(p) 131 227 134: 6(float) Load 133 228 136: 135(ptr) AccessChain 128(s) 24 229 Store 136 134 230 139: 138(ptr) AccessChain 47 102 24 231 140: 14(fvec3) Load 139 232 144: 143(bvec3) FUnordNotEqual 140 142 233 145: 137(bool) Any 144 234 146: 137(bool) LogicalNot 145 235 SelectionMerge 148 None 236 BranchConditional 146 147 148 237 147: Label 238 150: 149(ptr) AccessChain 47 109 102 239 151: 42(ivec3) Load 150 240 154: 143(bvec3) INotEqual 151 153 241 155: 137(bool) Any 154 242 Branch 148 243 148: Label 244 156: 137(bool) Phi 145 5 155 147 245 SelectionMerge 158 None 246 BranchConditional 156 157 158 247 157: Label 248 159: 97(ptr) AccessChain 128(s) 20 249 160: 14(fvec3) Load 159 250 161: 14(fvec3) CompositeConstruct 141 141 141 251 162: 14(fvec3) FAdd 160 161 252 Store 159 162 253 Branch 158 254 158: Label 255 Return 256 FunctionEnd 257