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 build commands
7  * [[VUID-{refpage}-pInfos-03675]]
8    For each pname:pInfos[i], pname:dstAccelerationStructure must: have been
9    created with a value of
10    slink:VkAccelerationStructureCreateInfoKHR::pname:size greater than or
11    equal to the memory size required by the build operation, as returned by
12    flink:vkGetAccelerationStructureBuildSizesKHR with [eq]#pname:pBuildInfo
13    = pname:pInfos[i]# and with each element of the
14    pname:pMaxPrimitiveCounts array greater than or equal to the equivalent
15    pname:ppBuildRangeInfos[i][j].pname:primitiveCount values for code:j in
16    [eq]#[0,pname:pInfos[i].pname:geometryCount)#
17  * [[VUID-{refpage}-ppBuildRangeInfos-03676]]
18    Each element of pname:ppBuildRangeInfos[i] must: be a valid pointer to
19    an array of pname:pInfos[i].pname:geometryCount
20    sname:VkAccelerationStructureBuildRangeInfoKHR structures
21// Common Valid Usage
22