C Specification
The VkAccelerationStructureCreateGeometryTypeInfoKHR
structure
specifies the shape of geometries that will be built into an acceleration
structure and is defined as:
// Provided by VK_KHR_ray_tracing
typedef struct VkAccelerationStructureCreateGeometryTypeInfoKHR {
VkStructureType sType;
const void* pNext;
VkGeometryTypeKHR geometryType;
uint32_t maxPrimitiveCount;
VkIndexType indexType;
uint32_t maxVertexCount;
VkFormat vertexFormat;
VkBool32 allowsTransforms;
} VkAccelerationStructureCreateGeometryTypeInfoKHR;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
geometryType
is a VkGeometryTypeKHR that describes the type of an acceleration structure geometry. -
maxPrimitiveCount
describes the maximum number of primitives that can be built into an acceleration structure geometry. -
indexType
is a VkIndexType that describes the index type used to build this geometry whengeometryType
isVK_GEOMETRY_TYPE_TRIANGLES_KHR
. -
maxVertexCount
describes the maximum vertex count that can be used to build an acceleration structure geometry whengeometryType
isVK_GEOMETRY_TYPE_TRIANGLES_KHR
. -
vertexFormat
is a VkFormat that describes the vertex format used to build this geometry whengeometryType
isVK_GEOMETRY_TYPE_TRIANGLES_KHR
. -
allowsTransforms
indicates whether transform data can be used by this acceleration structure or not, whengeometryType
isVK_GEOMETRY_TYPE_TRIANGLES_KHR
.
Description
When geometryType
is VK_GEOMETRY_TYPE_TRIANGLES_KHR
:
-
if
indexType
isVK_INDEX_TYPE_NONE_KHR
, then this structure describes a set of triangles. -
if
indexType
is notVK_INDEX_TYPE_NONE_KHR
, then this structure describes a set of indexed triangles.
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.