Lines Matching refs:gpu
15 void GrVkImage::setImageLayout(const GrVkGpu* gpu, VkImageLayout newLayout, in setImageLayout() argument
42 gpu->addImageMemoryBarrier(srcStageMask, dstStageMask, byRegion, &imageMemoryBarrier); in setImageLayout()
47 const GrVkImage::Resource* GrVkImage::CreateResource(const GrVkGpu* gpu, in CreateResource() argument
81 err = VK_CALL(gpu, CreateImage(gpu->device(), &imageCreateInfo, nullptr, &image)); in CreateResource()
84 if (!GrVkMemory::AllocAndBindImageMemory(gpu, image, imageDesc.fMemProps, &alloc)) { in CreateResource()
85 VK_CALL(gpu, DestroyImage(gpu->device(), image, nullptr)); in CreateResource()
101 void GrVkImage::releaseImage(const GrVkGpu* gpu) { in releaseImage() argument
103 fResource->unref(gpu); in releaseImage()
115 void GrVkImage::Resource::freeGPUData(const GrVkGpu* gpu) const { in freeGPUData()
116 VK_CALL(gpu, DestroyImage(gpu->device(), fImage, nullptr)); in freeGPUData()
117 VK_CALL(gpu, FreeMemory(gpu->device(), fAlloc, nullptr)); in freeGPUData()