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 vkGetDeviceImageSubresourceLayout(
VkDevice device,
const VkDeviceImageSubresourceInfo* pInfo,
VkSubresourceLayout2* pLayout);
pub fn get_device_image_subresource_layout(
device: vk::Device,
p_info: *const vk::DeviceImageSubresourceInfo,
p_layout: *mut vk::SubresourceLayout2,
);
void vkGetDeviceImageSubresourceLayoutKHR(
VkDevice device,
const VkDeviceImageSubresourceInfo* pInfo,
VkSubresourceLayout2* pLayout);
pub fn get_device_image_subresource_layout_khr(
device: vk::Device,
p_info: *const vk::DeviceImageSubresourceInfo,
p_layout: *mut vk::SubresourceLayout2,
);
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.
vkGetDeviceImageSubresourceLayout behaves similarly to
vkGetImageSubresourceLayout2, but uses a VkImageCreateInfo
structure to specify the image rather than a VkImage object.
Valid Usage (Implicit)
VUID-vkGetDeviceImageSubresourceLayout-device-parameter
device must be a valid VkDevice handle
VUID-vkGetDeviceImageSubresourceLayout-pInfo-parameter
pInfo must be a valid pointer to a valid VkDeviceImageSubresourceInfo structure
VUID-vkGetDeviceImageSubresourceLayout-pLayout-parameter
pLayout must be a valid pointer to a VkSubresourceLayout2 structure
Parent
VK_VERSION_1_4Type
Function Prototype