Lines Matching refs:vkTex
386 GrVkTexture* vkTex = static_cast<GrVkTexture*>(surface->asTexture()); in onWritePixels() local
387 if (!vkTex) { in onWritePixels()
396 SkASSERT(!GrPixelConfigIsCompressed(vkTex->config())); in onWritePixels()
398 bool linearTiling = vkTex->isLinearTiled(); in onWritePixels()
404 if (VK_IMAGE_LAYOUT_PREINITIALIZED != vkTex->currentLayout()) { in onWritePixels()
406 vkTex->setImageLayout(this, in onWritePixels()
413 success = this->uploadTexDataLinear(vkTex, left, top, width, height, srcColorType, in onWritePixels()
416 SkASSERT(mipLevelCount <= vkTex->texturePriv().maxMipMapLevel() + 1); in onWritePixels()
417 success = this->uploadTexDataOptimal(vkTex, left, top, width, height, srcColorType, texels, in onWritePixels()
434 GrVkTexture* vkTex = static_cast<GrVkTexture*>(texture); in onTransferPixels() local
435 if (!vkTex) { in onTransferPixels()
464 vkTex->setImageLayout(this, in onTransferPixels()
473 vkTex, in onTransferPixels()
478 vkTex->texturePriv().markMipMapsDirty(); in onTransferPixels()
1193 auto* vkTex = static_cast<GrVkTexture*>(tex); in onRegenerateMipMapLevels() local
1195 if (vkTex->isLinearTiled()) { in onRegenerateMipMapLevels()
1215 SkASSERT(levelCount == vkTex->mipLevels()); in onRegenerateMipMapLevels()
1218 vkTex->setImageLayout(this, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_ACCESS_TRANSFER_WRITE_BIT, in onRegenerateMipMapLevels()
1222 SkASSERT(GrVkFormatIsSupported(vkTex->imageFormat())); in onRegenerateMipMapLevels()
1233 vkTex->image(), // image in onRegenerateMipMapLevels()
1256 vkTex->resource(), in onRegenerateMipMapLevels()
1257 vkTex->image(), in onRegenerateMipMapLevels()
1259 vkTex->resource(), in onRegenerateMipMapLevels()
1260 vkTex->image(), in onRegenerateMipMapLevels()
1273 vkTex->updateImageLayout(VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL); in onRegenerateMipMapLevels()