blob: 35b06362a1033c09d7c068e24507b109d67c8a22 [file] [log] [blame]
spv.texture.frag
WARNING: 0:14: varying deprecated in version 130; may be removed in future release
WARNING: 0:15: varying deprecated in version 130; may be removed in future release
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 282
Source GLSL 130
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
ExecutionMode 4 OriginLowerLeft
Name 4 "main"
Name 8 "blendscale"
Name 10 "bias"
Name 12 "lod"
Name 14 "proj"
Name 15 "coords1D"
Name 18 "coords3D"
Name 24 "coords4D"
Name 26 "color"
Name 32 "texSampler1D"
Name 47 "coords2D"
Name 72 "texSampler2D"
Name 98 "texSampler3D"
Name 124 "texSamplerCube"
Name 139 "shadowSampler1D"
Name 156 "shadowSampler2D"
Name 199 "iCoords2D"
Name 204 "iLod"
Name 213 "gradX"
Name 216 "gradY"
Name 268 "gl_FragColor"
Name 271 "u"
Name 274 "blend"
Name 280 "scale"
Name 281 "t"
Decorate 47(coords2D) Smooth
Decorate 268(gl_FragColor) BuiltIn FragColor
Decorate 280(scale) NoStaticUse
Decorate 281(t) Smooth
Decorate 281(t) NoStaticUse
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypePointer Function 6(float)
9: 6(float) Constant 1071971828
11: 6(float) Constant 1073741824
13: 6(float) Constant 1077936128
16: TypeVector 6(float) 3
17: TypePointer Function 16(fvec3)
19: 6(float) Constant 1076753334
20: 6(float) Constant 1079836148
21: 16(fvec3) ConstantComposite 9 19 20
22: TypeVector 6(float) 4
23: TypePointer Function 22(fvec4)
25: 22(fvec4) ConstantComposite 9 19 20 11
27: 6(float) Constant 0
28: 22(fvec4) ConstantComposite 27 27 27 27
29: TypeImage 6(float) 1D sampled format:Unknown
30: TypeSampledImage 29
31: TypePointer UniformConstant 30
32(texSampler1D): 31(ptr) Variable UniformConstant
45: TypeVector 6(float) 2
46: TypePointer Input 45(fvec2)
47(coords2D): 46(ptr) Variable Input
69: TypeImage 6(float) 2D sampled format:Unknown
70: TypeSampledImage 69
71: TypePointer UniformConstant 70
72(texSampler2D): 71(ptr) Variable UniformConstant
95: TypeImage 6(float) 3D sampled format:Unknown
96: TypeSampledImage 95
97: TypePointer UniformConstant 96
98(texSampler3D): 97(ptr) Variable UniformConstant
121: TypeImage 6(float) Cube sampled format:Unknown
122: TypeSampledImage 121
123: TypePointer UniformConstant 122
124(texSamplerCube): 123(ptr) Variable UniformConstant
136: TypeImage 6(float) 1D depth sampled format:Unknown
137: TypeSampledImage 136
138: TypePointer UniformConstant 137
139(shadowSampler1D): 138(ptr) Variable UniformConstant
153: TypeImage 6(float) 2D depth sampled format:Unknown
154: TypeSampledImage 153
155: TypePointer UniformConstant 154
156(shadowSampler2D): 155(ptr) Variable UniformConstant
196: TypeInt 32 1
197: TypeVector 196(int) 2
198: TypePointer Function 197(ivec2)
200: 196(int) Constant 0
201: 196(int) Constant 5
202: 197(ivec2) ConstantComposite 200 201
203: TypePointer Function 196(int)
205: 196(int) Constant 1
212: TypePointer Function 45(fvec2)
241: 196(int) Constant 3
242: 196(int) Constant 4294967289
243: 197(ivec2) ConstantComposite 241 242
267: TypePointer Output 22(fvec4)
268(gl_FragColor): 267(ptr) Variable Output
270: TypePointer UniformConstant 22(fvec4)
271(u): 270(ptr) Variable UniformConstant
273: TypePointer UniformConstant 6(float)
274(blend): 273(ptr) Variable UniformConstant
279: TypePointer UniformConstant 45(fvec2)
280(scale): 279(ptr) Variable UniformConstant
281(t): 46(ptr) Variable Input
4(main): 2 Function None 3
5: Label
8(blendscale): 7(ptr) Variable Function
10(bias): 7(ptr) Variable Function
12(lod): 7(ptr) Variable Function
14(proj): 7(ptr) Variable Function
15(coords1D): 7(ptr) Variable Function
18(coords3D): 17(ptr) Variable Function
24(coords4D): 23(ptr) Variable Function
26(color): 23(ptr) Variable Function
199(iCoords2D): 198(ptr) Variable Function
204(iLod): 203(ptr) Variable Function
213(gradX): 212(ptr) Variable Function
216(gradY): 212(ptr) Variable Function
Store 8(blendscale) 9
Store 10(bias) 11
Store 12(lod) 13
Store 14(proj) 11
Store 15(coords1D) 9
Store 18(coords3D) 21
Store 24(coords4D) 25
Store 26(color) 28
33: 30 Load 32(texSampler1D)
34: 6(float) Load 15(coords1D)
35: 22(fvec4) ImageSampleImplicitLod 33 34
36: 22(fvec4) Load 26(color)
37: 22(fvec4) FAdd 36 35
Store 26(color) 37
38: 30 Load 32(texSampler1D)
39: 6(float) Load 15(coords1D)
40: 6(float) Load 10(bias)
41: 22(fvec4) ImageSampleImplicitLod 38 39 40
42: 22(fvec4) Load 26(color)
43: 22(fvec4) FAdd 42 41
Store 26(color) 43
44: 30 Load 32(texSampler1D)
48: 45(fvec2) Load 47(coords2D)
49: 22(fvec4) ImageSampleProjImplicitLod 44 48
50: 22(fvec4) Load 26(color)
51: 22(fvec4) FAdd 50 49
Store 26(color) 51
52: 30 Load 32(texSampler1D)
53: 22(fvec4) Load 24(coords4D)
54: 22(fvec4) ImageSampleProjImplicitLod 52 53
55: 22(fvec4) Load 26(color)
56: 22(fvec4) FAdd 55 54
Store 26(color) 56
57: 30 Load 32(texSampler1D)
58: 45(fvec2) Load 47(coords2D)
59: 6(float) Load 10(bias)
60: 22(fvec4) ImageSampleProjImplicitLod 57 58 59
61: 22(fvec4) Load 26(color)
62: 22(fvec4) FAdd 61 60
Store 26(color) 62
63: 30 Load 32(texSampler1D)
64: 22(fvec4) Load 24(coords4D)
65: 6(float) Load 10(bias)
66: 22(fvec4) ImageSampleProjImplicitLod 63 64 65
67: 22(fvec4) Load 26(color)
68: 22(fvec4) FAdd 67 66
Store 26(color) 68
73: 70 Load 72(texSampler2D)
74: 45(fvec2) Load 47(coords2D)
75: 22(fvec4) ImageSampleImplicitLod 73 74
76: 22(fvec4) Load 26(color)
77: 22(fvec4) FAdd 76 75
Store 26(color) 77
78: 70 Load 72(texSampler2D)
79: 45(fvec2) Load 47(coords2D)
80: 6(float) Load 10(bias)
81: 22(fvec4) ImageSampleImplicitLod 78 79 80
82: 22(fvec4) Load 26(color)
83: 22(fvec4) FAdd 82 81
Store 26(color) 83
84: 70 Load 72(texSampler2D)
85: 16(fvec3) Load 18(coords3D)
86: 22(fvec4) ImageSampleProjImplicitLod 84 85
87: 22(fvec4) Load 26(color)
88: 22(fvec4) FAdd 87 86
Store 26(color) 88
89: 70 Load 72(texSampler2D)
90: 22(fvec4) Load 24(coords4D)
91: 6(float) Load 10(bias)
92: 22(fvec4) ImageSampleProjImplicitLod 89 90 91
93: 22(fvec4) Load 26(color)
94: 22(fvec4) FAdd 93 92
Store 26(color) 94
99: 96 Load 98(texSampler3D)
100: 16(fvec3) Load 18(coords3D)
101: 22(fvec4) ImageSampleImplicitLod 99 100
102: 22(fvec4) Load 26(color)
103: 22(fvec4) FAdd 102 101
Store 26(color) 103
104: 96 Load 98(texSampler3D)
105: 16(fvec3) Load 18(coords3D)
106: 6(float) Load 10(bias)
107: 22(fvec4) ImageSampleImplicitLod 104 105 106
108: 22(fvec4) Load 26(color)
109: 22(fvec4) FAdd 108 107
Store 26(color) 109
110: 96 Load 98(texSampler3D)
111: 22(fvec4) Load 24(coords4D)
112: 22(fvec4) ImageSampleProjImplicitLod 110 111
113: 22(fvec4) Load 26(color)
114: 22(fvec4) FAdd 113 112
Store 26(color) 114
115: 96 Load 98(texSampler3D)
116: 22(fvec4) Load 24(coords4D)
117: 6(float) Load 10(bias)
118: 22(fvec4) ImageSampleProjImplicitLod 115 116 117
119: 22(fvec4) Load 26(color)
120: 22(fvec4) FAdd 119 118
Store 26(color) 120
125: 122 Load 124(texSamplerCube)
126: 16(fvec3) Load 18(coords3D)
127: 22(fvec4) ImageSampleImplicitLod 125 126
128: 22(fvec4) Load 26(color)
129: 22(fvec4) FAdd 128 127
Store 26(color) 129
130: 122 Load 124(texSamplerCube)
131: 16(fvec3) Load 18(coords3D)
132: 6(float) Load 10(bias)
133: 22(fvec4) ImageSampleImplicitLod 130 131 132
134: 22(fvec4) Load 26(color)
135: 22(fvec4) FAdd 134 133
Store 26(color) 135
140: 137 Load 139(shadowSampler1D)
141: 16(fvec3) Load 18(coords3D)
142: 6(float) CompositeExtract 141 2
143: 22(fvec4) ImageSampleDrefImplicitLod 140 141 142
144: 22(fvec4) Load 26(color)
145: 22(fvec4) FAdd 144 143
Store 26(color) 145
146: 137 Load 139(shadowSampler1D)
147: 16(fvec3) Load 18(coords3D)
148: 6(float) Load 10(bias)
149: 6(float) CompositeExtract 147 2
150: 22(fvec4) ImageSampleDrefImplicitLod 146 147 149 148
151: 22(fvec4) Load 26(color)
152: 22(fvec4) FAdd 151 150
Store 26(color) 152
157: 154 Load 156(shadowSampler2D)
158: 16(fvec3) Load 18(coords3D)
159: 6(float) CompositeExtract 158 2
160: 22(fvec4) ImageSampleDrefImplicitLod 157 158 159
161: 22(fvec4) Load 26(color)
162: 22(fvec4) FAdd 161 160
Store 26(color) 162
163: 154 Load 156(shadowSampler2D)
164: 16(fvec3) Load 18(coords3D)
165: 6(float) Load 10(bias)
166: 6(float) CompositeExtract 164 2
167: 22(fvec4) ImageSampleDrefImplicitLod 163 164 166 165
168: 22(fvec4) Load 26(color)
169: 22(fvec4) FAdd 168 167
Store 26(color) 169
170: 137 Load 139(shadowSampler1D)
171: 22(fvec4) Load 24(coords4D)
172: 6(float) CompositeExtract 171 3
173: 22(fvec4) ImageSampleProjDrefImplicitLod 170 171 172
174: 22(fvec4) Load 26(color)
175: 22(fvec4) FAdd 174 173
Store 26(color) 175
176: 137 Load 139(shadowSampler1D)
177: 22(fvec4) Load 24(coords4D)
178: 6(float) Load 10(bias)
179: 6(float) CompositeExtract 177 3
180: 22(fvec4) ImageSampleProjDrefImplicitLod 176 177 179 178
181: 22(fvec4) Load 26(color)
182: 22(fvec4) FAdd 181 180
Store 26(color) 182
183: 154 Load 156(shadowSampler2D)
184: 22(fvec4) Load 24(coords4D)
185: 6(float) CompositeExtract 184 3
186: 22(fvec4) ImageSampleProjDrefImplicitLod 183 184 185
187: 22(fvec4) Load 26(color)
188: 22(fvec4) FAdd 187 186
Store 26(color) 188
189: 154 Load 156(shadowSampler2D)
190: 22(fvec4) Load 24(coords4D)
191: 6(float) Load 10(bias)
192: 6(float) CompositeExtract 190 3
193: 22(fvec4) ImageSampleProjDrefImplicitLod 189 190 192 191
194: 22(fvec4) Load 26(color)
195: 22(fvec4) FAdd 194 193
Store 26(color) 195
Store 199(iCoords2D) 202
Store 204(iLod) 205
206: 70 Load 72(texSampler2D)
207: 197(ivec2) Load 199(iCoords2D)
208: 196(int) Load 204(iLod)
209: 22(fvec4) ImageFetch 206 207
210: 22(fvec4) Load 26(color)
211: 22(fvec4) FAdd 210 209
Store 26(color) 211
214: 45(fvec2) Load 47(coords2D)
215: 45(fvec2) DPdx 214
Store 213(gradX) 215
217: 45(fvec2) Load 47(coords2D)
218: 45(fvec2) DPdy 217
Store 216(gradY) 218
219: 70 Load 72(texSampler2D)
220: 45(fvec2) Load 47(coords2D)
221: 45(fvec2) Load 213(gradX)
222: 45(fvec2) Load 216(gradY)
223: 22(fvec4) ImageSampleExplicitLod 219 220 221 222
224: 22(fvec4) Load 26(color)
225: 22(fvec4) FAdd 224 223
Store 26(color) 225
226: 70 Load 72(texSampler2D)
227: 45(fvec2) Load 47(coords2D)
228: 6(float) Load 14(proj)
229: 6(float) CompositeExtract 227 0
230: 6(float) CompositeExtract 227 1
231: 16(fvec3) CompositeConstruct 229 230 228
232: 45(fvec2) Load 213(gradX)
233: 45(fvec2) Load 216(gradY)
234: 22(fvec4) ImageSampleProjExplicitLod 226 231 232 233
235: 22(fvec4) Load 26(color)
236: 22(fvec4) FAdd 235 234
Store 26(color) 236
237: 70 Load 72(texSampler2D)
238: 45(fvec2) Load 47(coords2D)
239: 45(fvec2) Load 213(gradX)
240: 45(fvec2) Load 216(gradY)
244: 22(fvec4) ImageSampleExplicitLod 237 238 239 240 243
245: 22(fvec4) Load 26(color)
246: 22(fvec4) FAdd 245 244
Store 26(color) 246
247: 70 Load 72(texSampler2D)
248: 16(fvec3) Load 18(coords3D)
249: 45(fvec2) Load 213(gradX)
250: 45(fvec2) Load 216(gradY)
251: 22(fvec4) ImageSampleProjExplicitLod 247 248 249 250 243
252: 22(fvec4) Load 26(color)
253: 22(fvec4) FAdd 252 251
Store 26(color) 253
254: 154 Load 156(shadowSampler2D)
255: 45(fvec2) Load 47(coords2D)
256: 6(float) Load 12(lod)
257: 6(float) CompositeExtract 255 0
258: 6(float) CompositeExtract 255 1
259: 16(fvec3) CompositeConstruct 257 258 256
260: 45(fvec2) Load 213(gradX)
261: 45(fvec2) Load 216(gradY)
262: 6(float) CompositeExtract 259 2
263: 6(float) ImageSampleDrefExplicitLod 254 259 262 260 261
264: 22(fvec4) Load 26(color)
265: 22(fvec4) CompositeConstruct 263 263 263 263
266: 22(fvec4) FAdd 264 265
Store 26(color) 266
269: 22(fvec4) Load 26(color)
272: 22(fvec4) Load 271(u)
275: 6(float) Load 274(blend)
276: 6(float) Load 8(blendscale)
277: 6(float) FMul 275 276
278: 22(fvec4) ExtInst 1(GLSL.std.450) 46(Mix) 269 272 277
Store 268(gl_FragColor) 278
Return
FunctionEnd