C Specification
The VkAccelerationStructureBuildGeometryInfoKHR
structure is defined
as:
typedef struct VkAccelerationStructureBuildGeometryInfoKHR {
VkStructureType sType;
const void* pNext;
VkAccelerationStructureTypeKHR type;
VkBuildAccelerationStructureFlagsKHR flags;
VkBool32 update;
VkAccelerationStructureKHR srcAccelerationStructure;
VkAccelerationStructureKHR dstAccelerationStructure;
VkBool32 geometryArrayOfPointers;
uint32_t geometryCount;
const VkAccelerationStructureGeometryKHR* const* ppGeometries;
VkDeviceOrHostAddressKHR scratchData;
} VkAccelerationStructureBuildGeometryInfoKHR;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to an extension-specific structure. -
type
is a VkAccelerationStructureTypeKHR value specifying the type of acceleration structure being built. -
flags
is a bitmask of VkBuildAccelerationStructureFlagBitsKHR specifying additional parameters of the acceleration structure. -
update
specifies whether to updatedstAccelerationStructure
with the data insrcAccelerationStructure
or not. -
srcAccelerationStructure
points to an existing acceleration structure that is to be used to update thedst
acceleration structure whenupdate
isVK_TRUE
. -
dstAccelerationStructure
points to the target acceleration structure for the build. -
geometryArrayOfPointers
specifies whetherppGeometries
is used as a pointer to an array of pointers or a pointer to a pointer to an array. -
geometryCount
specifies the number of geometries that will be built intodstAccelerationStructure
. -
ppGeometries
is either a pointer to an array of pointers to VkAccelerationStructureGeometryKHR structures ifgeometryArrayOfPointers
isVK_TRUE
, or a pointer to a pointer to an array of VkAccelerationStructureGeometryKHR structures if it’sVK_FALSE
. Each element of the array describes the data used to build each acceleration structure geometry. -
scratchData
is the device or host address to memory that will be used as scratch memory for the build.
Description
Note
Elements of
|
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.