Unlike the stride for vertex buffers in VkVertexInputBindingDescription for graphics pipelines which must not exceed maxVertexInputBindingStride, vertexStride for acceleration structure geometry is instead restricted to being a 32-bit value.
vertexStride must be a multiple of the size in bytes of the smallest component of vertexFormatvertexStride must be less than or equal to 232-1vertexFormat must contain FORMAT_FEATURE_ACCELERATION_STRUCTURE_VERTEX_BUFFER_BIT_KHRindexType must be INDEX_TYPE_UINT16, INDEX_TYPE_UINT32, or INDEX_TYPE_NONE_KHRsType must be STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHRpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkAccelerationStructureGeometryMotionTrianglesDataNV, VkAccelerationStructureTrianglesDisplacementMicromapNV, or VkAccelerationStructureTrianglesOpacityMicromapEXTsType value of each struct in the pNext chain must be uniquevertexFormat must be a valid VkFormat valueindexType must be a valid VkIndexType valueVkAccelerationStructureGeometryDataKHR, VkDeviceOrHostAddressConstKHR
struct VkAccelerationStructureGeometryTrianglesDataKHR {
VkStructureType sType;
void const * pNext;
VkFormat vertexFormat;
VkDeviceOrHostAddressConstKHR vertexData;
VkDeviceSize vertexStride;
uint32_t maxVertex;
VkIndexType indexType;
VkDeviceOrHostAddressConstKHR indexData;
VkDeviceOrHostAddressConstKHR transformData;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | INDEXDATA
The struct member offsets. |
| public static final int | INDEXTYPE
The struct member offsets. |
| public static final int | MAXVERTEX
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | TRANSFORMDATA
The struct member offsets. |
| public static final int | VERTEXDATA
The struct member offsets. |
| public static final int | VERTEXFORMAT
The struct member offsets. |
| public static final int | VERTEXSTRIDE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkAccelerationStructureGeometryTrianglesDataKHR(ByteBuffer container)
Creates a |