1spv.localAggregates.frag 2// Module Version 10000 3// Generated by (magic number): 80007 4// Id's are bound by 136 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 15 40 90 98 108 134 135 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 400 12 Name 4 "main" 13 Name 8 "s1" 14 MemberName 8(s1) 0 "i" 15 MemberName 8(s1) 1 "f" 16 Name 10 "s2" 17 MemberName 10(s2) 0 "i" 18 MemberName 10(s2) 1 "f" 19 MemberName 10(s2) 2 "s1_1" 20 MemberName 10(s2) 3 "bleh" 21 Name 12 "locals2" 22 Name 13 "s3" 23 MemberName 13(s3) 0 "s2_1" 24 MemberName 13(s3) 1 "i" 25 MemberName 13(s3) 2 "f" 26 MemberName 13(s3) 3 "s1_1" 27 Name 15 "foo3" 28 Name 36 "localFArray" 29 Name 40 "coord" 30 Name 49 "localIArray" 31 Name 68 "x" 32 Name 70 "localArray" 33 Name 75 "i" 34 Name 84 "a" 35 Name 90 "condition" 36 Name 98 "color" 37 Name 108 "gl_FragColor" 38 Name 128 "samp2D" 39 Name 134 "foo" 40 Name 135 "foo2" 41 Decorate 15(foo3) Flat 42 Decorate 90(condition) Flat 43 Decorate 108(gl_FragColor) Location 0 44 Decorate 128(samp2D) DescriptorSet 0 45 Decorate 134(foo) Flat 46 Decorate 135(foo2) Flat 47 2: TypeVoid 48 3: TypeFunction 2 49 6: TypeInt 32 1 50 7: TypeFloat 32 51 8(s1): TypeStruct 6(int) 7(float) 52 9: TypeVector 7(float) 4 53 10(s2): TypeStruct 6(int) 7(float) 8(s1) 9(fvec4) 54 11: TypePointer Function 10(s2) 55 13(s3): TypeStruct 10(s2) 6(int) 7(float) 8(s1) 56 14: TypePointer Input 13(s3) 57 15(foo3): 14(ptr) Variable Input 58 16: 6(int) Constant 0 59 17: TypePointer Input 10(s2) 60 20: TypePointer Input 6(int) 61 23: TypeBool 62 27: 6(int) Constant 2 63 28: 6(int) Constant 1 64 29: 7(float) Constant 1065353216 65 30: TypePointer Function 7(float) 66 32: TypeInt 32 0 67 33: 32(int) Constant 16 68 34: TypeArray 7(float) 33 69 35: TypePointer Function 34 70 37: 6(int) Constant 4 71 38: TypeVector 7(float) 2 72 39: TypePointer Input 38(fvec2) 73 40(coord): 39(ptr) Variable Input 74 41: 32(int) Constant 0 75 42: TypePointer Input 7(float) 76 46: 32(int) Constant 8 77 47: TypeArray 6(int) 46 78 48: TypePointer Function 47 79 52: TypePointer Function 6(int) 80 69: 6(int) Constant 5 81 82: 6(int) Constant 16 82 86: 7(float) Constant 0 83 90(condition): 20(ptr) Variable Input 84 96: 6(int) Constant 3 85 97: TypePointer Input 9(fvec4) 86 98(color): 97(ptr) Variable Input 87 100: TypePointer Function 9(fvec4) 88 102: 32(int) Constant 1 89 105: 32(int) Constant 2 90 107: TypePointer Output 9(fvec4) 91108(gl_FragColor): 107(ptr) Variable Output 92 125: TypeImage 7(float) 2D sampled format:Unknown 93 126: TypeSampledImage 125 94 127: TypePointer UniformConstant 126 95 128(samp2D): 127(ptr) Variable UniformConstant 96 133: TypePointer Input 8(s1) 97 134(foo): 133(ptr) Variable Input 98 135(foo2): 17(ptr) Variable Input 99 4(main): 2 Function None 3 100 5: Label 101 12(locals2): 11(ptr) Variable Function 102 36(localFArray): 35(ptr) Variable Function 103 49(localIArray): 48(ptr) Variable Function 104 68(x): 52(ptr) Variable Function 105 70(localArray): 35(ptr) Variable Function 106 75(i): 52(ptr) Variable Function 107 84(a): 35(ptr) Variable Function 108 18: 17(ptr) AccessChain 15(foo3) 16 109 19: 10(s2) Load 18 110 Store 12(locals2) 19 111 21: 20(ptr) AccessChain 15(foo3) 16 16 112 22: 6(int) Load 21 113 24: 23(bool) SGreaterThan 22 16 114 SelectionMerge 26 None 115 BranchConditional 24 25 54 116 25: Label 117 31: 30(ptr) AccessChain 12(locals2) 27 28 118 Store 31 29 119 43: 42(ptr) AccessChain 40(coord) 41 120 44: 7(float) Load 43 121 45: 30(ptr) AccessChain 36(localFArray) 37 122 Store 45 44 123 50: 20(ptr) AccessChain 15(foo3) 16 16 124 51: 6(int) Load 50 125 53: 52(ptr) AccessChain 49(localIArray) 27 126 Store 53 51 127 Branch 26 128 54: Label 129 55: 42(ptr) AccessChain 40(coord) 41 130 56: 7(float) Load 55 131 57: 30(ptr) AccessChain 12(locals2) 27 28 132 Store 57 56 133 58: 30(ptr) AccessChain 36(localFArray) 37 134 Store 58 29 135 59: 52(ptr) AccessChain 49(localIArray) 27 136 Store 59 16 137 Branch 26 138 26: Label 139 60: 52(ptr) AccessChain 49(localIArray) 27 140 61: 6(int) Load 60 141 62: 23(bool) IEqual 61 16 142 SelectionMerge 64 None 143 BranchConditional 62 63 64 144 63: Label 145 65: 30(ptr) AccessChain 36(localFArray) 37 146 66: 7(float) Load 65 147 67: 7(float) FAdd 66 29 148 Store 65 67 149 Branch 64 150 64: Label 151 Store 68(x) 69 152 71: 6(int) Load 68(x) 153 72: 42(ptr) AccessChain 40(coord) 41 154 73: 7(float) Load 72 155 74: 30(ptr) AccessChain 70(localArray) 71 156 Store 74 73 157 Store 75(i) 16 158 Branch 76 159 76: Label 160 LoopMerge 78 79 None 161 Branch 80 162 80: Label 163 81: 6(int) Load 75(i) 164 83: 23(bool) SLessThan 81 82 165 BranchConditional 83 77 78 166 77: Label 167 85: 6(int) Load 75(i) 168 87: 30(ptr) AccessChain 84(a) 85 169 Store 87 86 170 Branch 79 171 79: Label 172 88: 6(int) Load 75(i) 173 89: 6(int) IAdd 88 28 174 Store 75(i) 89 175 Branch 76 176 78: Label 177 91: 6(int) Load 90(condition) 178 92: 23(bool) IEqual 91 28 179 SelectionMerge 94 None 180 BranchConditional 92 93 94 181 93: Label 182 95: 34 Load 70(localArray) 183 Store 84(a) 95 184 Branch 94 185 94: Label 186 99: 9(fvec4) Load 98(color) 187 101: 100(ptr) AccessChain 12(locals2) 96 188 Store 101 99 189 103: 42(ptr) AccessChain 40(coord) 102 190 104: 7(float) Load 103 191 106: 30(ptr) AccessChain 12(locals2) 96 105 192 Store 106 104 193 109: 100(ptr) AccessChain 12(locals2) 96 194 110: 9(fvec4) Load 109 195 111: 30(ptr) AccessChain 36(localFArray) 37 196 112: 7(float) Load 111 197 113: 30(ptr) AccessChain 12(locals2) 27 28 198 114: 7(float) Load 113 199 115: 7(float) FAdd 112 114 200 116: 6(int) Load 68(x) 201 117: 30(ptr) AccessChain 70(localArray) 116 202 118: 7(float) Load 117 203 119: 7(float) FAdd 115 118 204 120: 6(int) Load 68(x) 205 121: 30(ptr) AccessChain 84(a) 120 206 122: 7(float) Load 121 207 123: 7(float) FAdd 119 122 208 124: 9(fvec4) VectorTimesScalar 110 123 209 129: 126 Load 128(samp2D) 210 130: 38(fvec2) Load 40(coord) 211 131: 9(fvec4) ImageSampleImplicitLod 129 130 212 132: 9(fvec4) FMul 124 131 213 Store 108(gl_FragColor) 132 214 Return 215 FunctionEnd 216