1// Copyright 2019-2023 The Khronos Group Inc.
2//
3// SPDX-License-Identifier: CC-BY-4.0
4
5// Common Valid Usage
6// Common to acceleration structure property query
7  * [[VUID-{refpage}-pAccelerationStructures-04964]]
8    All acceleration structures in pname:pAccelerationStructures must: have
9    been built prior to the execution of this command
10  * [[VUID-{refpage}-accelerationStructures-03431]]
11    All acceleration structures in pname:pAccelerationStructures must: have
12    been built with
13    ename:VK_BUILD_ACCELERATION_STRUCTURE_ALLOW_COMPACTION_BIT_KHR if
14    pname:queryType is
15    ename:VK_QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR
16ifdef::VK_KHR_ray_tracing_maintenance1[]
17  * [[VUID-{refpage}-queryType-06742]]
18    pname:queryType must: be
19    ename:VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR,
20    ename:VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR,
21    ename:VK_QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR or
22    ename:VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR
23endif::VK_KHR_ray_tracing_maintenance1[]
24ifndef::VK_KHR_ray_tracing_maintenance1[]
25  * [[VUID-{refpage}-queryType-03432]]
26    pname:queryType must: be
27    ename:VK_QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR or
28    ename:VK_QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR
29endif::VK_KHR_ray_tracing_maintenance1[]
30// Common Valid Usage
31