summaryrefslogtreecommitdiff
path: root/chapters/commonvalidity/copy_anyimage_to_imageany_no_rotation_common.adoc
blob: 9864a6ae134edcf681e9114ff1873c53e6e7b3e2 (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
// 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 and
// where VkCopyCommandTransformInfoQCOM is not applicable.
// 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}, as well as {imageoffset}
// and {imageextents} to specify the fields in pRegions corresponding to the
// offset and extent of the copy.

  * [[VUID-{refpage}-{imagesubresource}-07970]]
    The image region specified by each element of pname:pRegions must: be
    contained within the specified pname:{imagesubresource} of
    pname:{imageparam}
  * [[VUID-{refpage}-{imagesubresource}-07971]]
    For each element of pname:pRegions, pname:{imageoffset}.x and
    [eq]#(pname:{imageextent}.width {plus} pname:{imageoffset}.x)# must:
    both be greater than or equal to `0` and less than or equal to the width
    of the specified pname:{imagesubresource} of pname:{imageparam}
  * [[VUID-{refpage}-{imagesubresource}-07972]]
    For each element of pname:pRegions, pname:{imageoffset}.y and
    [eq]#(pname:{imageextent}.height {plus} pname:{imageoffset}.y)# must:
    both be greater than or equal to `0` and less than or equal to the
    height of the specified pname:{imagesubresource} of pname:{imageparam}
// Common Valid Usage