// Copyright 2020-2023 The Khronos Group Inc.
//
// SPDX-License-Identifier: CC-BY-4.0

// Common Valid Usage
// Common to VkImageResolve* struct
  * [[VUID-{refpage}-aspectMask-00266]]
    The pname:aspectMask member of pname:srcSubresource and
    pname:dstSubresource must: only contain ename:VK_IMAGE_ASPECT_COLOR_BIT
  * [[VUID-{refpage}-layerCount-08803]]
ifdef::VK_KHR_maintenance5[]
    If neither of the pname:layerCount members of pname:srcSubresource or
    pname:dstSubresource are ename:VK_REMAINING_ARRAY_LAYERS, the
endif::VK_KHR_maintenance5[]
ifndef::VK_KHR_maintenance5[The]
    pname:layerCount member of pname:srcSubresource and pname:dstSubresource
    must: match
ifdef::VK_KHR_maintenance5[]
  * [[VUID-{refpage}-maintenance5-08802]]
    If the <<features-maintenance5, pname:maintenance5>> feature is not
    enabled, the pname:layerCount member of pname:srcSubresource or
    pname:dstSubresource must: not be ename:VK_REMAINING_ARRAY_LAYERS
  * [[VUID-{refpage}-layerCount-08804]]
    If one of the pname:layerCount members of pname:srcSubresource or
    pname:dstSubresource is ename:VK_REMAINING_ARRAY_LAYERS, the other
    member must: be either ename:VK_REMAINING_ARRAY_LAYERS or equal to the
    pname:arrayLayers member of the slink:VkImageCreateInfo used to create
    the image minus pname:baseArrayLayer
endif::VK_KHR_maintenance5[]
// Common Valid Usage
