C Specification
The VkAccelerationStructureBuildGeometryInfoKHR structure is defined
as:
// Provided by VK_KHR_ray_tracing
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
-
sTypeis the type of this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
typeis a VkAccelerationStructureTypeKHR value specifying the type of acceleration structure being built. -
flagsis a bitmask of VkBuildAccelerationStructureFlagBitsKHR specifying additional parameters of the acceleration structure. -
updatespecifies whether to updatedstAccelerationStructurewith the data insrcAccelerationStructureor not. -
srcAccelerationStructurepoints to an existing acceleration structure that is to be used to update thedstacceleration structure whenupdateisVK_TRUE. -
dstAccelerationStructurepoints to the target acceleration structure for the build. -
geometryArrayOfPointersspecifies whetherppGeometriesis used as a pointer to an array of pointers or a pointer to a pointer to an array. -
geometryCountspecifies the number of geometries that will be built intodstAccelerationStructure. -
ppGeometriesis either a pointer to an array of pointers to VkAccelerationStructureGeometryKHR structures ifgeometryArrayOfPointersisVK_TRUE, or a pointer to a pointer to an array of VkAccelerationStructureGeometryKHR structures if it isVK_FALSE. Each element of the array describes the data used to build each acceleration structure geometry. -
scratchDatais 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.