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