# VkSubresourceLayout2(3) Manual Page

## Name

VkSubresourceLayout2 - Structure specifying subresource layout

Loading… please wait.

## C Specification

Information about the layout of the image subresource is returned in a `VkSubresourceLayout2` structure:

    // Provided by VK_VERSION_1_4
    typedef struct VkSubresourceLayout2 {
        VkStructureType        sType;
        void*                  pNext;
        VkSubresourceLayout    subresourceLayout;
    } VkSubresourceLayout2;

or the equivalent

    // Provided by VK_KHR_maintenance5
    typedef VkSubresourceLayout2 VkSubresourceLayout2KHR;

or the equivalent

    // Provided by VK_EXT_host_image_copy, VK_EXT_image_compression_control
    typedef VkSubresourceLayout2 VkSubresourceLayout2EXT;

## Members

- `sType` is a VkStructureType value identifying this structure.

- `pNext` is `NULL` or a pointer to a structure extending this structure.

- `subresourceLayout` is a VkSubresourceLayout structure.

## Description

Valid Usage (Implicit)

- VUID-VkSubresourceLayout2-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_SUBRESOURCE_LAYOUT_2`

- VUID-VkSubresourceLayout2-pNext-pNext
  Each `pNext` member of any structure (including this one) in the `pNext` chain must be either `NULL` or a pointer to a valid instance of VkImageCompressionPropertiesEXT or VkSubresourceHostMemcpySize

- VUID-VkSubresourceLayout2-sType-unique
  The `sType` value of each structure in the `pNext` chain must be unique

## See Also

VK_EXT_host_image_copy, VK_EXT_image_compression_control, VK_KHR_maintenance5, VK_VERSION_1_4, VkStructureType, VkSubresourceLayout, vkGetDeviceImageSubresourceLayout, vkGetDeviceImageSubresourceLayoutKHR, vkGetImageSubresourceLayout2, vkGetImageSubresourceLayout2EXT, vkGetImageSubresourceLayout2KHR

## 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.

## Copyright

Copyright 2014-2025 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0