1// Copyright 2019-2021 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5// Common Valid Usage 6// Common to acceleration structure copy commands 7 * [[VUID-{refpage}-mode-03410]] 8 pname:mode must: be 9 ename:VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR or 10 ename:VK_COPY_ACCELERATION_STRUCTURE_MODE_CLONE_KHR 11 * [[VUID-{refpage}-src-04963]] 12 The source acceleration structure pname:src must: have been constructed 13 prior to the execution of this command 14 * [[VUID-{refpage}-src-03411]] 15 If pname:mode is ename:VK_COPY_ACCELERATION_STRUCTURE_MODE_COMPACT_KHR, 16 pname:src must: have been constructed with 17 ename:VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT_KHR in the 18 build 19 * [[VUID-{refpage}-buffer-03718]] 20 The pname:buffer used to create pname:src must: be bound to device 21 memory 22 * [[VUID-{refpage}-buffer-03719]] 23 The pname:buffer used to create pname:dst must: be bound to device 24 memory 25// Common Valid Usage 26