Home | History | Annotate | Download | only in vk

Lines Matching refs:gpu

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