TriangleGeometryBuildInfo struct
Information for building a triangle geometry of a bottom-level acceleration structure.
Constructors, destructors, conversion operators
- TriangleGeometryBuildInfo(BufferView vertexBuffer, uint64_t vertexStride = 0, BufferView indexBuffer = {}, uint32_t firstVertex = 0, BufferView transformBuffer = {})
Function documentation
tp:: TriangleGeometryBuildInfo:: TriangleGeometryBuildInfo(BufferView vertexBuffer,
uint64_t vertexStride = 0,
BufferView indexBuffer = {},
uint32_t firstVertex = 0,
BufferView transformBuffer = {})
| Parameters | |
|---|---|
| vertexBuffer | A buffer containing vertex data used for the triangle geometry. |
| vertexStride | The stride in bytes between each vertex in vertexBuffer. If 0, the size of the vertex format as defined in the associated tp:: |
| indexBuffer | An optional buffer containing index data for this geometry. The type of the inde xdata must match what was provided in the associated tp:: |
| firstVertex | If index data is provided, this value is added to all indices. Otherwise, the value determines the index of the first vertex used for the geometry. |
| transformBuffer | A buffer containing the transformation matrix from geometry space to the space of the acceleration structure in the form of a VkTransformMatrixKHR structure. |