C Specification
To query the memory layout of an image subresource, without an image object, call:
// Provided by VK_VERSION_1_4
void vkGetDeviceImageSubresourceLayout(
    VkDevice                                    device,
    const VkDeviceImageSubresourceInfo*         pInfo,
    VkSubresourceLayout2*                       pLayout);or the equivalent command
// Provided by VK_KHR_maintenance5
void vkGetDeviceImageSubresourceLayoutKHR(
    VkDevice                                    device,
    const VkDeviceImageSubresourceInfo*         pInfo,
    VkSubresourceLayout2*                       pLayout);Parameters
- 
deviceis the logical device that owns the image.
- 
pInfois a pointer to a VkDeviceImageSubresourceInfo structure containing parameters required for the subresource layout query.
- 
pLayoutis a pointer to a VkSubresourceLayout2 structure in which the layout is returned.
Description
vkGetDeviceImageSubresourceLayout behaves similarly to
vkGetImageSubresourceLayout2, but uses a VkImageCreateInfo
structure to specify the image rather than a VkImage object.
Document Notes
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.