Function Prototype

vkGetDeviceImageSubresourceLayout

Retrieve information about an image subresource without an image object

To query the memory layout of an image subresource, without an image object, call:

void vkGetDeviceImageSubresourceLayoutKHR(
    VkDevice device,
    const VkDeviceImageSubresourceInfo* pInfo,
    VkSubresourceLayout2* pLayout);
  • device is the logical device that owns the image.
  • pInfo is a pointer to a VkDeviceImageSubresourceInfo structure containing parameters required for the subresource layout query.
  • pLayout is a pointer to a VkSubresourceLayout2 structure in which the layout is returned.

vkGetDeviceImageSubresourceLayout behaves similarly to vkGetImageSubresourceLayout2, but uses a VkImageCreateInfo structure to specify the image rather than a VkImage object.

Valid Usage (Implicit)