C Specification
The VkGeometryTrianglesNV
structure specifies triangle geometry in a
bottom-level acceleration structure and is defined as:
// Provided by VK_NV_ray_tracing
typedef struct VkGeometryTrianglesNV {
VkStructureType sType;
const void* pNext;
VkBuffer vertexData;
VkDeviceSize vertexOffset;
uint32_t vertexCount;
VkDeviceSize vertexStride;
VkFormat vertexFormat;
VkBuffer indexData;
VkDeviceSize indexOffset;
uint32_t indexCount;
VkIndexType indexType;
VkBuffer transformData;
VkDeviceSize transformOffset;
} VkGeometryTrianglesNV;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
vertexData
is the buffer containing vertex data for this geometry. -
vertexOffset
is the offset in bytes withinvertexData
containing vertex data for this geometry. -
vertexCount
is the number of valid vertices. -
vertexStride
is the stride in bytes between each vertex. -
vertexFormat
is a VkFormat describing the format of each vertex element. -
indexData
is the buffer containing index data for this geometry. -
indexOffset
is the offset in bytes withinindexData
containing index data for this geometry. -
indexCount
is the number of indices to include in this geometry. -
indexType
is a VkIndexType describing the format of each index. -
transformData
is an optional buffer containing an VkTransformMatrixNV structure defining a transformation to be applied to this geometry. -
transformOffset
is the offset in bytes intransformData
of the transform information described above.
Description
If indexType
is VK_INDEX_TYPE_NONE_NV
, then this structure
describes a set of triangles determined by vertexCount
.
Otherwise, this structure describes a set of indexed triangles determined by
indexCount
.
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.