summaryrefslogtreecommitdiff
path: root/chapters/commonvalidity/copy_anyimage_to_imageany_common.adoc
blob: d892a977ab08103c26b3113f8b8df42fd9760400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright 2023-2024 The Khronos Group Inc.
//
// SPDX-License-Identifier: CC-BY-4.0

// Common Valid Usage
// Common to vk*Copy* commands that have image as source and/or destination.
// This relies on an additional attribute {imageparam} set by the command
// which includes this file, specifying the name of the source or
// destination image.
// Additionally, it relies on the {imagesubresource} attribute to specify the
// field in pRegions corresponding to {imageparam}

  * [[VUID-{refpage}-{imageparam}-07966]]
    If pname:{imageparam} is non-sparse then the image
ifdef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[]
    or the specified _disjoint_ plane
endif::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[]
    must: be bound completely and contiguously to a single
    sname:VkDeviceMemory object
  * [[VUID-{refpage}-{imagesubresource}-07967]]
    The pname:{imagesubresource}.mipLevel member of each element of
    pname:pRegions must: be less than the pname:mipLevels specified in
    slink:VkImageCreateInfo when pname:{imageparam} was created
  * [[VUID-{refpage}-{imagesubresource}-07968]]
ifdef::VK_KHR_maintenance5[]
    If pname:{imageSubresource}.layerCount is not
    ename:VK_REMAINING_ARRAY_LAYERS,
endif::VK_KHR_maintenance5[]
    [eq]#pname:{imagesubresource}.baseArrayLayer {plus}
    pname:{imageSubresource}.layerCount# of each element of pname:pRegions
    must: be less than or equal to the pname:arrayLayers specified in
    slink:VkImageCreateInfo when pname:{imageparam} was created
ifdef::VK_EXT_fragment_density_map[]
  * [[VUID-{refpage}-{imageparam}-07969]]
    pname:{imageparam} must: not have been created with pname:flags
    containing ename:VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT
endif::VK_EXT_fragment_density_map[]
// Common Valid Usage