C Specification
The VkAccelerationStructureCreateGeometryTypeInfoKHR structure
specifies the shape of geometries that will be built into an acceleration
structure and is defined as:
typedef struct VkAccelerationStructureCreateGeometryTypeInfoKHR {
VkStructureType sType;
const void* pNext;
VkGeometryTypeKHR geometryType;
uint32_t maxPrimitiveCount;
VkIndexType indexType;
uint32_t maxVertexCount;
VkFormat vertexFormat;
VkBool32 allowsTransforms;
} VkAccelerationStructureCreateGeometryTypeInfoKHR;
Members
-
sTypeis the type of this structure. -
pNextisNULLor a pointer to an extension-specific structure. -
geometryTypeis a VkGeometryTypeKHR that describes the type of an acceleration structure geometry. -
maxPrimitiveCountdescribes the maximum number of primitives that can be built into an acceleration structure geometry. -
indexTypeis a VkIndexType that describes the index type used to build this geometry whengeometryTypeisVK_GEOMETRY_TYPE_TRIANGLES_KHR. -
maxVertexCountdescribes the maximum vertex count that can be used to build an acceleration structure geometry whengeometryTypeisVK_GEOMETRY_TYPE_TRIANGLES_KHR. -
vertexFormatis a VkFormat that describes the vertex format used to build this geometry whengeometryTypeisVK_GEOMETRY_TYPE_TRIANGLES_KHR. -
allowsTransformsindicates whether transform data can be used by this acceleration structure or not, whengeometryTypeisVK_GEOMETRY_TYPE_TRIANGLES_KHR.
Description
When geometryType is VK_GEOMETRY_TYPE_TRIANGLES_KHR:
-
if
indexTypeisVK_INDEX_TYPE_NONE_KHR, then this structure describes a set of triangles. -
if
indexTypeis 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.