VKIMAGESUBRESOURCELA(3)

NAME
VkImageSubresourceLayers - Structure specifying a image subresource layers

C SPECIFICATION

The VkImageSubresourceLayers structure is defined as:

    typedef struct VkImageSubresourceLayers {
        VkImageAspectFlags    aspectMask;
        uint32_t              mipLevel;
        uint32_t              baseArrayLayer;
        uint32_t              layerCount;
    } VkImageSubresourceLayers;

MEMBERS

    • aspectMask is a combination of VkImageAspectFlagBits, selecting the color, depth and/or stencil aspects to be copied.

    • mipLevel is the mipmap level to copy from.

    • baseArrayLayer and layerCount are the starting layer and number of layers to copy.

DESCRIPTION

VALID USAGE

    • aspectMask must be a valid combination of VkImageAspectFlagBits values

    • aspectMask must not be 0

    • If aspectMask contains VK_IMAGE_ASPECT_COLOR_BIT, it must not contain either of VK_IMAGE_ASPECT_DEPTH_BIT or VK_IMAGE_ASPECT_STENCIL_BIT

    • aspectMask must not contain VK_IMAGE_ASPECT_METADATA_BIT

    • mipLevel must be less than the mipLevels specified in VkImageCreateInfo when the image was created

    • [ $(baseArrayLayer + layerCount)$ ] must be less than or equal to the arrayLayers specified in VkImageCreateInfo when the image was created

SEE ALSO

VkBufferImageCopy, VkImageAspectFlags, VkImageBlit, VkImageCopy, VkImageResolve

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#VkImageSubresourceLayers

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly.

COPYRIGHT

Copyright (c) 2014-2016 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.

AUTHOR

Khronos Group
    Author.