1// Copyright 2023 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5// Common Valid Usage 6// Common to commands copying from images to buffers, or buffers to images 7// This relies on the following additional attributes set by the command which 8// includes this file: 9// 10// - {imageparam}, specifying the name of the source or destination image, 11 12 * [[VUID-{refpage}-{imageparam}-07975]] 13 If pname:{imageparam} does not have either a depth/stencil format 14ifdef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[] 15 or a <<formats-requiring-sampler-ycbcr-conversion,multi-planar format>>, 16endif::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[] 17 then for each element of pname:pRegions, pname:bufferOffset must: be a 18 multiple of the <<formats-compatibility-classes,texel block size>> 19ifdef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[] 20 * [[VUID-{refpage}-{imageparam}-07976]] 21 If pname:{imageparam} has a 22 <<formats-requiring-sampler-ycbcr-conversion,multi-planar format>>, then 23 for each element of pname:pRegions, pname:bufferOffset must: be a 24 multiple of the element size of the compatible format for the format and 25 the pname:aspectMask of the pname:imageSubresource as defined in 26 <<formats-compatible-planes>> 27endif::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[] 28 * [[VUID-{refpage}-{imageparam}-07978]] 29 If pname:{imageparam} has a depth/stencil format, the pname:bufferOffset 30 member of any element of pname:pRegions must: be a multiple of `4` 31// Common Valid Usage 32