2 // Module Version 10300
3 // Generated by (magic number): 8000b
4 // Id's are bound by 124
7 2: ExtInstImport "GLSL.std.450"
8 MemoryModel Logical GLSL450
9 EntryPoint Fragment 5 "main" 24 52
10 ExecutionMode 5 OriginUpperLeft
11 1: String "spv.debugInfo.frag"
12 Source GLSL 450 1 "#version 450
22 uniform sampler2D s2d;
24 layout(location = 0) in vec4 inv;
25 layout(location = 0) out vec4 outv;
42 outv += texture(s2d, vec2(0.5));
57 for (int i = 0; i < 10; ++i)
67 Name 14 "foo(struct-S-i11;"
73 MemberName 53(S) 0 "a"
75 MemberName 54(ubuf) 0 "s"
80 ModuleProcessed "no-storage-format"
81 ModuleProcessed "resource-set-binding 3"
82 ModuleProcessed "auto-map-bindings"
83 ModuleProcessed "auto-map-locations"
84 ModuleProcessed "client vulkan100"
85 ModuleProcessed "target-env spirv1.3"
86 ModuleProcessed "target-env vulkan1.1"
87 ModuleProcessed "relaxed-errors"
88 ModuleProcessed "suppress-warnings"
89 ModuleProcessed "hlsl-offsets"
90 ModuleProcessed "entry-point main"
91 Decorate 24(inv) Location 0
92 Decorate 52(outv) Location 0
93 MemberDecorate 53(S) 0 Offset 0
94 MemberDecorate 54(ubuf) 0 Offset 0
95 Decorate 54(ubuf) Block
96 Decorate 56 DescriptorSet 3
98 Decorate 67(s2d) DescriptorSet 3
99 Decorate 67(s2d) Binding 1
103 8(S): TypeStruct 7(int)
104 9: TypePointer Function 8(S)
106 11: TypeVector 10(float) 4
107 12: TypeFunction 11(fvec4) 9(ptr)
108 16: TypePointer Function 11(fvec4)
109 18: 7(int) Constant 0
110 19: TypePointer Function 7(int)
111 23: TypePointer Input 11(fvec4)
112 24(inv): 23(ptr) Variable Input
113 28: 10(float) Constant 1065353216
115 32: 31(int) Constant 0
116 33: TypePointer Function 10(float)
117 36: 10(float) Constant 1077936128
119 45: 10(float) Constant 1073741824
120 51: TypePointer Output 11(fvec4)
121 52(outv): 51(ptr) Variable Output
122 53(S): TypeStruct 7(int)
123 54(ubuf): TypeStruct 53(S)
124 55: TypePointer Uniform 54(ubuf)
125 56: 55(ptr) Variable Uniform
126 58: TypePointer Uniform 53(S)
127 64: TypeImage 10(float) 2D sampled format:Unknown
128 65: TypeSampledImage 64
129 66: TypePointer UniformConstant 65
130 67(s2d): 66(ptr) Variable UniformConstant
131 69: TypeVector 10(float) 2
132 70: 10(float) Constant 1056964608
133 71: 69(fvec2) ConstantComposite 70 70
134 75: TypePointer Uniform 7(int)
135 104: 7(int) Constant 10
136 109: 7(int) Constant 1
137 111: TypePointer Output 10(float)
138 114: 10(float) Constant 1092616192
140 5(main): 3 Function None 4
142 57(param): 9(ptr) Variable Function
143 97(i): 19(ptr) Variable Function
144 116: 16(ptr) Variable Function
146 59: 58(ptr) AccessChain 56 18
148 61: 7(int) CompositeExtract 60 0
149 62: 19(ptr) AccessChain 57(param) 18
151 63: 11(fvec4) FunctionCall 14(foo(struct-S-i11;) 57(param)
155 72: 11(fvec4) ImageSampleImplicitLod 68 71
156 73: 11(fvec4) Load 52(outv)
157 74: 11(fvec4) FAdd 73 72
160 76: 75(ptr) AccessChain 56 18 18
162 SelectionMerge 81 None
168 92: 11(fvec4) Load 52(outv)
169 93: 11(fvec4) CompositeConstruct 28 28 28 28
170 94: 11(fvec4) FSub 92 93
176 82: 11(fvec4) Load 52(outv)
177 83: 11(fvec4) CompositeConstruct 28 28 28 28
178 84: 11(fvec4) FAdd 82 83
184 86: 11(fvec4) Load 52(outv)
185 87: 11(fvec4) VectorTimesScalar 86 45
188 88: 11(fvec4) Load 52(outv)
189 89: 11(fvec4) CompositeConstruct 28 28 28 28
190 90: 11(fvec4) FAdd 88 89
200 LoopMerge 100 101 None
204 103: 7(int) Load 97(i)
205 105: 37(bool) SLessThan 103 104
206 BranchConditional 105 99 100
209 106: 11(fvec4) Load 52(outv)
210 107: 11(fvec4) VectorTimesScalar 106 36
215 108: 7(int) Load 97(i)
216 110: 7(int) IAdd 108 109
221 112: 111(ptr) AccessChain 52(outv) 32
222 113: 10(float) Load 112
223 115: 37(bool) FOrdLessThan 113 114
224 SelectionMerge 118 None
225 BranchConditional 115 117 121
228 119: 11(fvec4) Load 52(outv)
229 120: 11(fvec4) ExtInst 2(GLSL.std.450) 13(Sin) 119
235 122: 11(fvec4) Load 52(outv)
236 123: 11(fvec4) ExtInst 2(GLSL.std.450) 14(Cos) 122
244 14(foo(struct-S-i11;): 11(fvec4) Function None 12
245 13(s): 9(ptr) FunctionParameter
247 17(r): 16(ptr) Variable Function
249 20: 19(ptr) AccessChain 13(s) 18
251 22: 10(float) ConvertSToF 21
252 25: 11(fvec4) Load 24(inv)
253 26: 11(fvec4) VectorTimesScalar 25 22
256 27: 11(fvec4) Load 17(r)
257 29: 11(fvec4) CompositeConstruct 28 28 28 28
258 30: 11(fvec4) FAdd 27 29
261 34: 33(ptr) AccessChain 17(r) 32
262 35: 10(float) Load 34
263 38: 37(bool) FOrdGreaterThan 35 36
264 SelectionMerge 40 None
265 BranchConditional 38 39 44
268 41: 11(fvec4) Load 17(r)
269 42: 11(fvec4) CompositeConstruct 28 28 28 28
270 43: 11(fvec4) FSub 41 42
275 46: 11(fvec4) Load 17(r)
276 47: 11(fvec4) VectorTimesScalar 46 45
281 48: 11(fvec4) Load 17(r)