Skip to content

vulkan/runtime: Add helper functions for VK_EXT_host_image_copy

What does this MR do and why?

Adds helper functions vk_memory_to_image_copy_layout and vk_image_to_memory_copy_layout, which will be useful in VK_EXT_host_image_copy implementations.

vk_memory_to_image_copy_layout() is similar to vk_image_buffer_copy_layout(), except the second parameter is VkMemoryToImageCopyEXT instead of VkBufferImageCopy2.

vk_image_to_memory_copy_layout() is similar to vk_image_buffer_copy_layout(), except the second parameter is VkImageToMemoryCopyEXT instead of VkBufferImageCopy2.

Merge request reports