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