Lines Matching refs:gpu
32 static bool alloc_device_memory(const GrVkGpu* gpu, in alloc_device_memory() argument
37 if (!get_valid_memory_type_index(gpu->physicalDeviceMemoryProperties(), in alloc_device_memory()
51 VkResult err = GR_VK_CALL(gpu->vkInterface(), AllocateMemory(gpu->device(), in alloc_device_memory()
61 bool GrVkMemory::AllocAndBindBufferMemory(const GrVkGpu* gpu, in AllocAndBindBufferMemory() argument
65 const GrVkInterface* interface = gpu->vkInterface(); in AllocAndBindBufferMemory()
66 VkDevice device = gpu->device(); in AllocAndBindBufferMemory()
72 if (!alloc_device_memory(gpu, &memReqs, flags, memory)) { in AllocAndBindBufferMemory()
85 bool GrVkMemory::AllocAndBindImageMemory(const GrVkGpu* gpu, in AllocAndBindImageMemory() argument
89 const GrVkInterface* interface = gpu->vkInterface(); in AllocAndBindImageMemory()
90 VkDevice device = gpu->device(); in AllocAndBindImageMemory()
95 if (!alloc_device_memory(gpu, &memReqs, flags, memory)) { in AllocAndBindImageMemory()