1spv.texture.frag 2WARNING: 0:10: varying deprecated in version 130; may be removed in future release 3WARNING: 0:11: varying deprecated in version 130; may be removed in future release 4WARNING: 0:12: varying deprecated in version 130; may be removed in future release 5 6// Module Version 10000 7// Generated by (magic number): 80007 8// Id's are bound by 305 9 10 Capability Shader 11 Capability Sampled1D 12 1: ExtInstImport "GLSL.std.450" 13 MemoryModel Logical GLSL450 14 EntryPoint Fragment 4 "main" 47 291 294 297 303 304 15 ExecutionMode 4 OriginUpperLeft 16 Source GLSL 140 17 Name 4 "main" 18 Name 8 "blendscale" 19 Name 10 "bias" 20 Name 12 "lod" 21 Name 14 "proj" 22 Name 15 "coords1D" 23 Name 18 "coords3D" 24 Name 24 "coords4D" 25 Name 26 "color" 26 Name 32 "texSampler1D" 27 Name 47 "coords2D" 28 Name 76 "texSampler2D" 29 Name 104 "texSampler3D" 30 Name 130 "texSamplerCube" 31 Name 145 "shadowSampler1D" 32 Name 164 "shadowSampler2D" 33 Name 221 "iCoords2D" 34 Name 226 "iLod" 35 Name 236 "gradX" 36 Name 239 "gradY" 37 Name 291 "gl_FragColor" 38 Name 294 "u" 39 Name 297 "blend" 40 Name 303 "scale" 41 Name 304 "t" 42 Decorate 32(texSampler1D) DescriptorSet 0 43 Decorate 76(texSampler2D) DescriptorSet 0 44 Decorate 104(texSampler3D) DescriptorSet 0 45 Decorate 130(texSamplerCube) DescriptorSet 0 46 Decorate 145(shadowSampler1D) DescriptorSet 0 47 Decorate 164(shadowSampler2D) DescriptorSet 0 48 Decorate 291(gl_FragColor) Location 0 49 2: TypeVoid 50 3: TypeFunction 2 51 6: TypeFloat 32 52 7: TypePointer Function 6(float) 53 9: 6(float) Constant 1071971828 54 11: 6(float) Constant 1073741824 55 13: 6(float) Constant 1077936128 56 16: TypeVector 6(float) 3 57 17: TypePointer Function 16(fvec3) 58 19: 6(float) Constant 1076753334 59 20: 6(float) Constant 1079836148 60 21: 16(fvec3) ConstantComposite 9 19 20 61 22: TypeVector 6(float) 4 62 23: TypePointer Function 22(fvec4) 63 25: 22(fvec4) ConstantComposite 9 19 20 11 64 27: 6(float) Constant 0 65 28: 22(fvec4) ConstantComposite 27 27 27 27 66 29: TypeImage 6(float) 1D sampled format:Unknown 67 30: TypeSampledImage 29 68 31: TypePointer UniformConstant 30 6932(texSampler1D): 31(ptr) Variable UniformConstant 70 45: TypeVector 6(float) 2 71 46: TypePointer Input 45(fvec2) 72 47(coords2D): 46(ptr) Variable Input 73 73: TypeImage 6(float) 2D sampled format:Unknown 74 74: TypeSampledImage 73 75 75: TypePointer UniformConstant 74 7676(texSampler2D): 75(ptr) Variable UniformConstant 77 101: TypeImage 6(float) 3D sampled format:Unknown 78 102: TypeSampledImage 101 79 103: TypePointer UniformConstant 102 80104(texSampler3D): 103(ptr) Variable UniformConstant 81 127: TypeImage 6(float) Cube sampled format:Unknown 82 128: TypeSampledImage 127 83 129: TypePointer UniformConstant 128 84130(texSamplerCube): 129(ptr) Variable UniformConstant 85 142: TypeImage 6(float) 1D depth sampled format:Unknown 86 143: TypeSampledImage 142 87 144: TypePointer UniformConstant 143 88145(shadowSampler1D): 144(ptr) Variable UniformConstant 89 161: TypeImage 6(float) 2D depth sampled format:Unknown 90 162: TypeSampledImage 161 91 163: TypePointer UniformConstant 162 92164(shadowSampler2D): 163(ptr) Variable UniformConstant 93 218: TypeInt 32 1 94 219: TypeVector 218(int) 2 95 220: TypePointer Function 219(ivec2) 96 222: 218(int) Constant 0 97 223: 218(int) Constant 5 98 224: 219(ivec2) ConstantComposite 222 223 99 225: TypePointer Function 218(int) 100 227: 218(int) Constant 1 101 235: TypePointer Function 45(fvec2) 102 264: 218(int) Constant 3 103 265: 218(int) Constant 4294967289 104 266: 219(ivec2) ConstantComposite 264 265 105 290: TypePointer Output 22(fvec4) 106291(gl_FragColor): 290(ptr) Variable Output 107 293: TypePointer Input 22(fvec4) 108 294(u): 293(ptr) Variable Input 109 296: TypePointer Input 6(float) 110 297(blend): 296(ptr) Variable Input 111 303(scale): 46(ptr) Variable Input 112 304(t): 46(ptr) Variable Input 113 4(main): 2 Function None 3 114 5: Label 115 8(blendscale): 7(ptr) Variable Function 116 10(bias): 7(ptr) Variable Function 117 12(lod): 7(ptr) Variable Function 118 14(proj): 7(ptr) Variable Function 119 15(coords1D): 7(ptr) Variable Function 120 18(coords3D): 17(ptr) Variable Function 121 24(coords4D): 23(ptr) Variable Function 122 26(color): 23(ptr) Variable Function 123 221(iCoords2D): 220(ptr) Variable Function 124 226(iLod): 225(ptr) Variable Function 125 236(gradX): 235(ptr) Variable Function 126 239(gradY): 235(ptr) Variable Function 127 Store 8(blendscale) 9 128 Store 10(bias) 11 129 Store 12(lod) 13 130 Store 14(proj) 11 131 Store 15(coords1D) 9 132 Store 18(coords3D) 21 133 Store 24(coords4D) 25 134 Store 26(color) 28 135 33: 30 Load 32(texSampler1D) 136 34: 6(float) Load 15(coords1D) 137 35: 22(fvec4) ImageSampleImplicitLod 33 34 138 36: 22(fvec4) Load 26(color) 139 37: 22(fvec4) FAdd 36 35 140 Store 26(color) 37 141 38: 30 Load 32(texSampler1D) 142 39: 6(float) Load 15(coords1D) 143 40: 6(float) Load 10(bias) 144 41: 22(fvec4) ImageSampleImplicitLod 38 39 Bias 40 145 42: 22(fvec4) Load 26(color) 146 43: 22(fvec4) FAdd 42 41 147 Store 26(color) 43 148 44: 30 Load 32(texSampler1D) 149 48: 45(fvec2) Load 47(coords2D) 150 49: 22(fvec4) ImageSampleProjImplicitLod 44 48 151 50: 22(fvec4) Load 26(color) 152 51: 22(fvec4) FAdd 50 49 153 Store 26(color) 51 154 52: 30 Load 32(texSampler1D) 155 53: 22(fvec4) Load 24(coords4D) 156 54: 6(float) CompositeExtract 53 3 157 55: 22(fvec4) CompositeInsert 54 53 1 158 56: 22(fvec4) ImageSampleProjImplicitLod 52 55 159 57: 22(fvec4) Load 26(color) 160 58: 22(fvec4) FAdd 57 56 161 Store 26(color) 58 162 59: 30 Load 32(texSampler1D) 163 60: 45(fvec2) Load 47(coords2D) 164 61: 6(float) Load 10(bias) 165 62: 22(fvec4) ImageSampleProjImplicitLod 59 60 Bias 61 166 63: 22(fvec4) Load 26(color) 167 64: 22(fvec4) FAdd 63 62 168 Store 26(color) 64 169 65: 30 Load 32(texSampler1D) 170 66: 22(fvec4) Load 24(coords4D) 171 67: 6(float) Load 10(bias) 172 68: 6(float) CompositeExtract 66 3 173 69: 22(fvec4) CompositeInsert 68 66 1 174 70: 22(fvec4) ImageSampleProjImplicitLod 65 69 Bias 67 175 71: 22(fvec4) Load 26(color) 176 72: 22(fvec4) FAdd 71 70 177 Store 26(color) 72 178 77: 74 Load 76(texSampler2D) 179 78: 45(fvec2) Load 47(coords2D) 180 79: 22(fvec4) ImageSampleImplicitLod 77 78 181 80: 22(fvec4) Load 26(color) 182 81: 22(fvec4) FAdd 80 79 183 Store 26(color) 81 184 82: 74 Load 76(texSampler2D) 185 83: 45(fvec2) Load 47(coords2D) 186 84: 6(float) Load 10(bias) 187 85: 22(fvec4) ImageSampleImplicitLod 82 83 Bias 84 188 86: 22(fvec4) Load 26(color) 189 87: 22(fvec4) FAdd 86 85 190 Store 26(color) 87 191 88: 74 Load 76(texSampler2D) 192 89: 16(fvec3) Load 18(coords3D) 193 90: 22(fvec4) ImageSampleProjImplicitLod 88 89 194 91: 22(fvec4) Load 26(color) 195 92: 22(fvec4) FAdd 91 90 196 Store 26(color) 92 197 93: 74 Load 76(texSampler2D) 198 94: 22(fvec4) Load 24(coords4D) 199 95: 6(float) Load 10(bias) 200 96: 6(float) CompositeExtract 94 3 201 97: 22(fvec4) CompositeInsert 96 94 2 202 98: 22(fvec4) ImageSampleProjImplicitLod 93 97 Bias 95 203 99: 22(fvec4) Load 26(color) 204 100: 22(fvec4) FAdd 99 98 205 Store 26(color) 100 206 105: 102 Load 104(texSampler3D) 207 106: 16(fvec3) Load 18(coords3D) 208 107: 22(fvec4) ImageSampleImplicitLod 105 106 209 108: 22(fvec4) Load 26(color) 210 109: 22(fvec4) FAdd 108 107 211 Store 26(color) 109 212 110: 102 Load 104(texSampler3D) 213 111: 16(fvec3) Load 18(coords3D) 214 112: 6(float) Load 10(bias) 215 113: 22(fvec4) ImageSampleImplicitLod 110 111 Bias 112 216 114: 22(fvec4) Load 26(color) 217 115: 22(fvec4) FAdd 114 113 218 Store 26(color) 115 219 116: 102 Load 104(texSampler3D) 220 117: 22(fvec4) Load 24(coords4D) 221 118: 22(fvec4) ImageSampleProjImplicitLod 116 117 222 119: 22(fvec4) Load 26(color) 223 120: 22(fvec4) FAdd 119 118 224 Store 26(color) 120 225 121: 102 Load 104(texSampler3D) 226 122: 22(fvec4) Load 24(coords4D) 227 123: 6(float) Load 10(bias) 228 124: 22(fvec4) ImageSampleProjImplicitLod 121 122 Bias 123 229 125: 22(fvec4) Load 26(color) 230 126: 22(fvec4) FAdd 125 124 231 Store 26(color) 126 232 131: 128 Load 130(texSamplerCube) 233 132: 16(fvec3) Load 18(coords3D) 234 133: 22(fvec4) ImageSampleImplicitLod 131 132 235 134: 22(fvec4) Load 26(color) 236 135: 22(fvec4) FAdd 134 133 237 Store 26(color) 135 238 136: 128 Load 130(texSamplerCube) 239 137: 16(fvec3) Load 18(coords3D) 240 138: 6(float) Load 10(bias) 241 139: 22(fvec4) ImageSampleImplicitLod 136 137 Bias 138 242 140: 22(fvec4) Load 26(color) 243 141: 22(fvec4) FAdd 140 139 244 Store 26(color) 141 245 146: 143 Load 145(shadowSampler1D) 246 147: 16(fvec3) Load 18(coords3D) 247 148: 6(float) CompositeExtract 147 2 248 149: 6(float) ImageSampleDrefImplicitLod 146 147 148 249 150: 22(fvec4) Load 26(color) 250 151: 22(fvec4) CompositeConstruct 149 149 149 149 251 152: 22(fvec4) FAdd 150 151 252 Store 26(color) 152 253 153: 143 Load 145(shadowSampler1D) 254 154: 16(fvec3) Load 18(coords3D) 255 155: 6(float) Load 10(bias) 256 156: 6(float) CompositeExtract 154 2 257 157: 6(float) ImageSampleDrefImplicitLod 153 154 156 Bias 155 258 158: 22(fvec4) Load 26(color) 259 159: 22(fvec4) CompositeConstruct 157 157 157 157 260 160: 22(fvec4) FAdd 158 159 261 Store 26(color) 160 262 165: 162 Load 164(shadowSampler2D) 263 166: 16(fvec3) Load 18(coords3D) 264 167: 6(float) CompositeExtract 166 2 265 168: 6(float) ImageSampleDrefImplicitLod 165 166 167 266 169: 22(fvec4) Load 26(color) 267 170: 22(fvec4) CompositeConstruct 168 168 168 168 268 171: 22(fvec4) FAdd 169 170 269 Store 26(color) 171 270 172: 162 Load 164(shadowSampler2D) 271 173: 16(fvec3) Load 18(coords3D) 272 174: 6(float) Load 10(bias) 273 175: 6(float) CompositeExtract 173 2 274 176: 6(float) ImageSampleDrefImplicitLod 172 173 175 Bias 174 275 177: 22(fvec4) Load 26(color) 276 178: 22(fvec4) CompositeConstruct 176 176 176 176 277 179: 22(fvec4) FAdd 177 178 278 Store 26(color) 179 279 180: 143 Load 145(shadowSampler1D) 280 181: 22(fvec4) Load 24(coords4D) 281 182: 6(float) CompositeExtract 181 2 282 183: 6(float) CompositeExtract 181 3 283 184: 22(fvec4) CompositeInsert 183 181 1 284 185: 6(float) ImageSampleProjDrefImplicitLod 180 184 182 285 186: 22(fvec4) Load 26(color) 286 187: 22(fvec4) CompositeConstruct 185 185 185 185 287 188: 22(fvec4) FAdd 186 187 288 Store 26(color) 188 289 189: 143 Load 145(shadowSampler1D) 290 190: 22(fvec4) Load 24(coords4D) 291 191: 6(float) Load 10(bias) 292 192: 6(float) CompositeExtract 190 2 293 193: 6(float) CompositeExtract 190 3 294 194: 22(fvec4) CompositeInsert 193 190 1 295 195: 6(float) ImageSampleProjDrefImplicitLod 189 194 192 Bias 191 296 196: 22(fvec4) Load 26(color) 297 197: 22(fvec4) CompositeConstruct 195 195 195 195 298 198: 22(fvec4) FAdd 196 197 299 Store 26(color) 198 300 199: 162 Load 164(shadowSampler2D) 301 200: 22(fvec4) Load 24(coords4D) 302 201: 6(float) CompositeExtract 200 2 303 202: 6(float) CompositeExtract 200 3 304 203: 22(fvec4) CompositeInsert 202 200 2 305 204: 6(float) ImageSampleProjDrefImplicitLod 199 203 201 306 205: 22(fvec4) Load 26(color) 307 206: 22(fvec4) CompositeConstruct 204 204 204 204 308 207: 22(fvec4) FAdd 205 206 309 Store 26(color) 207 310 208: 162 Load 164(shadowSampler2D) 311 209: 22(fvec4) Load 24(coords4D) 312 210: 6(float) Load 10(bias) 313 211: 6(float) CompositeExtract 209 2 314 212: 6(float) CompositeExtract 209 3 315 213: 22(fvec4) CompositeInsert 212 209 2 316 214: 6(float) ImageSampleProjDrefImplicitLod 208 213 211 Bias 210 317 215: 22(fvec4) Load 26(color) 318 216: 22(fvec4) CompositeConstruct 214 214 214 214 319 217: 22(fvec4) FAdd 215 216 320 Store 26(color) 217 321 Store 221(iCoords2D) 224 322 Store 226(iLod) 227 323 228: 74 Load 76(texSampler2D) 324 229: 219(ivec2) Load 221(iCoords2D) 325 230: 218(int) Load 226(iLod) 326 231: 73 Image 228 327 232: 22(fvec4) ImageFetch 231 229 Lod 230 328 233: 22(fvec4) Load 26(color) 329 234: 22(fvec4) FAdd 233 232 330 Store 26(color) 234 331 237: 45(fvec2) Load 47(coords2D) 332 238: 45(fvec2) DPdx 237 333 Store 236(gradX) 238 334 240: 45(fvec2) Load 47(coords2D) 335 241: 45(fvec2) DPdy 240 336 Store 239(gradY) 241 337 242: 74 Load 76(texSampler2D) 338 243: 45(fvec2) Load 47(coords2D) 339 244: 45(fvec2) Load 236(gradX) 340 245: 45(fvec2) Load 239(gradY) 341 246: 22(fvec4) ImageSampleExplicitLod 242 243 Grad 244 245 342 247: 22(fvec4) Load 26(color) 343 248: 22(fvec4) FAdd 247 246 344 Store 26(color) 248 345 249: 74 Load 76(texSampler2D) 346 250: 45(fvec2) Load 47(coords2D) 347 251: 6(float) Load 14(proj) 348 252: 6(float) CompositeExtract 250 0 349 253: 6(float) CompositeExtract 250 1 350 254: 16(fvec3) CompositeConstruct 252 253 251 351 255: 45(fvec2) Load 236(gradX) 352 256: 45(fvec2) Load 239(gradY) 353 257: 22(fvec4) ImageSampleProjExplicitLod 249 254 Grad 255 256 354 258: 22(fvec4) Load 26(color) 355 259: 22(fvec4) FAdd 258 257 356 Store 26(color) 259 357 260: 74 Load 76(texSampler2D) 358 261: 45(fvec2) Load 47(coords2D) 359 262: 45(fvec2) Load 236(gradX) 360 263: 45(fvec2) Load 239(gradY) 361 267: 22(fvec4) ImageSampleExplicitLod 260 261 Grad ConstOffset 262 263 266 362 268: 22(fvec4) Load 26(color) 363 269: 22(fvec4) FAdd 268 267 364 Store 26(color) 269 365 270: 74 Load 76(texSampler2D) 366 271: 16(fvec3) Load 18(coords3D) 367 272: 45(fvec2) Load 236(gradX) 368 273: 45(fvec2) Load 239(gradY) 369 274: 22(fvec4) ImageSampleProjExplicitLod 270 271 Grad ConstOffset 272 273 266 370 275: 22(fvec4) Load 26(color) 371 276: 22(fvec4) FAdd 275 274 372 Store 26(color) 276 373 277: 162 Load 164(shadowSampler2D) 374 278: 45(fvec2) Load 47(coords2D) 375 279: 6(float) Load 12(lod) 376 280: 6(float) CompositeExtract 278 0 377 281: 6(float) CompositeExtract 278 1 378 282: 16(fvec3) CompositeConstruct 280 281 279 379 283: 45(fvec2) Load 236(gradX) 380 284: 45(fvec2) Load 239(gradY) 381 285: 6(float) CompositeExtract 282 2 382 286: 6(float) ImageSampleDrefExplicitLod 277 282 285 Grad 283 284 383 287: 22(fvec4) Load 26(color) 384 288: 22(fvec4) CompositeConstruct 286 286 286 286 385 289: 22(fvec4) FAdd 287 288 386 Store 26(color) 289 387 292: 22(fvec4) Load 26(color) 388 295: 22(fvec4) Load 294(u) 389 298: 6(float) Load 297(blend) 390 299: 6(float) Load 8(blendscale) 391 300: 6(float) FMul 298 299 392 301: 22(fvec4) CompositeConstruct 300 300 300 300 393 302: 22(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 292 295 301 394 Store 291(gl_FragColor) 302 395 Return 396 FunctionEnd 397