To query the memory layout of an image subresource, call:
// Provided by VK_EXT_image_compression_control void vkGetImageSubresourceLayout2EXT( VkDevice device, VkImage image, const VkImageSubresource2EXT* pSubresource, VkSubresourceLayout2EXT* pLayout);
deviceis the logical device that owns the image.
imageis the image whose layout is being queried.
pSubresourceis a pointer to a VkImageSubresource2EXT structure selecting a specific image for the image subresource.
pLayoutis a pointer to a VkSubresourceLayout2EXT structure in which the layout is returned.
vkGetImageSubresourceLayout2EXT behaves similarly to
vkGetImageSubresourceLayout, with the ability to specify extended
inputs via chained input structures, and to return extended information via
chained output structures.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.