MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / BindVulkanImage

Method BindVulkanImage

include/vk_mem_alloc.h:14586–14611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14584}
14585
14586VkResult VmaAllocator_T::BindVulkanImage(
14587 VkDeviceMemory memory,
14588 VkDeviceSize memoryOffset,
14589 VkImage image,
14590 const void* pNext) const
14591{
14592 if(pNext != VMA_NULL)
14593 {
14594#if VMA_VULKAN_VERSION >= 1001000 || VMA_BIND_MEMORY2
14595 if((m_UseKhrBindMemory2 || m_VulkanApiVersion >= VK_MAKE_VERSION(1, 1, 0)) &&
14596 m_VulkanFunctions.vkBindImageMemory2KHR != VMA_NULL)
14597 {
14598 VkBindImageMemoryInfoKHR bindBufferMemoryInfo = { VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO_KHR };
14599 bindBufferMemoryInfo.pNext = pNext;
14600 bindBufferMemoryInfo.image = image;
14601 bindBufferMemoryInfo.memory = memory;
14602 bindBufferMemoryInfo.memoryOffset = memoryOffset;
14603 return (*m_VulkanFunctions.vkBindImageMemory2KHR)(m_hDevice, 1, &bindBufferMemoryInfo);
14604 }
14605#endif // #if VMA_BIND_MEMORY2
14606
14607 return VK_ERROR_EXTENSION_NOT_PRESENT;
14608 }
14609
14610 return (*m_VulkanFunctions.vkBindImageMemory)(m_hDevice, image, memory, memoryOffset);
14611}
14612
14613VkResult VmaAllocator_T::Map(VmaAllocation hAllocation, void** ppData)
14614{

Callers 1

BindImageMemoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected