• Home
  • Raw
  • Download

Lines Matching refs:texAttachment

486     GrVkAttachment* texAttachment = texture->textureAttachment();  in onWritePixels()  local
493 SkASSERT(!GrVkFormatIsCompressed(texAttachment->imageFormat())); in onWritePixels()
495 bool linearTiling = texAttachment->isLinearTiled(); in onWritePixels()
501 if (VK_IMAGE_LAYOUT_PREINITIALIZED != texAttachment->currentLayout()) { in onWritePixels()
503 texAttachment->setImageLayout(this, in onWritePixels()
512 success = this->uploadTexDataLinear(texAttachment, left, top, width, height, srcColorType, in onWritePixels()
515 SkASSERT(mipLevelCount <= (int)texAttachment->mipLevels()); in onWritePixels()
516 success = this->uploadTexDataOptimal(texAttachment, left, top, width, height, srcColorType, in onWritePixels()
524 texAttachment->setImageLayout(this, in onWritePixels()
732 bool GrVkGpu::uploadTexDataLinear(GrVkAttachment* texAttachment, int left, int top, int width, in uploadTexDataLinear() argument
736 SkASSERT(texAttachment->isLinearTiled()); in uploadTexDataLinear()
740 SkIRect bounds = SkIRect::MakeWH(texAttachment->width(), texAttachment->height()); in uploadTexDataLinear()
746 SkASSERT(VK_IMAGE_LAYOUT_PREINITIALIZED == texAttachment->currentLayout() || in uploadTexDataLinear()
747 VK_IMAGE_LAYOUT_GENERAL == texAttachment->currentLayout()); in uploadTexDataLinear()
758 texAttachment->image(), in uploadTexDataLinear()
762 const GrVkAlloc& alloc = texAttachment->alloc(); in uploadTexDataLinear()
843 bool GrVkGpu::uploadTexDataOptimal(GrVkAttachment* texAttachment, int left, int top, int width, in uploadTexDataOptimal() argument
850 SkASSERT(!texAttachment->isLinearTiled()); in uploadTexDataOptimal()
853 (0 == left && 0 == top && width == texAttachment->width() && in uploadTexDataOptimal()
854 height == texAttachment->height())); in uploadTexDataOptimal()
858 SkASSERT(1 == mipLevelCount || mipLevelCount == (int)texAttachment->mipLevels()); in uploadTexDataOptimal()
864 SkASSERT(this->vkCaps().surfaceSupportsWritePixels(texAttachment)); in uploadTexDataOptimal()
866 SkASSERT(this->vkCaps().isVkFormatTexturable(texAttachment->imageFormat())); in uploadTexDataOptimal()
911 int layerHeight = texAttachment->height(); in uploadTexDataOptimal()
940 texAttachment->setImageLayout(this, in uploadTexDataOptimal()
954 texAttachment, in uploadTexDataOptimal()
1598 GrVkAttachment* texAttachment = texture->textureAttachment(); in onClearBackendTexture() local
1605 texAttachment->setImageLayout(this, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, in onClearBackendTexture()
1625 cmdBuffer->clearColorImage(this, texAttachment, &vkColor, 1, &range); in onClearBackendTexture()
1629 texAttachment->setImageLayout(this, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, in onClearBackendTexture()