1// Copyright 2020-2023 The Khronos Group Inc.
2//
3// SPDX-License-Identifier: CC-BY-4.0
4
5// Common Valid Usage
6// Common to VkImageCopy* struct
7ifndef::VKSC_VERSION_1_0[]
8  * [[VUID-{refpage}-apiVersion-07940]]
9ifdef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[If]
10ifdef::VK_KHR_sampler_ycbcr_conversion[]
11    the apiext:VK_KHR_sampler_ycbcr_conversion extension is not enabled,
12endif::VK_KHR_sampler_ycbcr_conversion[]
13ifdef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[and]
14ifdef::VK_VERSION_1_1[]
15    slink:VkPhysicalDeviceProperties::pname:apiVersion is less than Vulkan
16    1.1,
17endif::VK_VERSION_1_1[]
18ifdef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[the]
19ifndef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[The]
20    pname:aspectMask member of pname:srcSubresource and pname:dstSubresource
21    must: match
22  * [[VUID-{refpage}-apiVersion-07941]]
23ifdef::VK_VERSION_1_1,VK_KHR_maintenance1[If]
24ifdef::VK_KHR_maintenance1[]
25    the apiext:VK_KHR_maintenance1 extension is not enabled,
26endif::VK_KHR_maintenance1[]
27ifdef::VK_VERSION_1_1,VK_KHR_maintenance1[and]
28ifdef::VK_VERSION_1_1[]
29    slink:VkPhysicalDeviceProperties::pname:apiVersion is less than Vulkan
30    1.1,
31endif::VK_VERSION_1_1[]
32ifdef::VK_VERSION_1_1,VK_KHR_maintenance1[the]
33ifndef::VK_VERSION_1_1,VK_KHR_maintenance1[The]
34    pname:layerCount member of pname:srcSubresource and pname:dstSubresource
35    must: match
36endif::VKSC_VERSION_1_0[]
37  * [[VUID-{refpage}-extent-06668]]
38    pname:extent.width must: not be 0
39  * [[VUID-{refpage}-extent-06669]]
40    pname:extent.height must: not be 0
41  * [[VUID-{refpage}-extent-06670]]
42    pname:extent.depth must: not be 0
43// Common Valid Usage
44