MeshIndexBinding

sealed interface MeshIndexBinding

Describes how a MeshDraw resolves its index buffer when it is submitted.

Some meshes own a dedicated uploaded index buffer, while others rely on vanilla's shared sequential buffers and must resolve the current buffer lazily at draw time.

Inheritors

Types

Link copied to clipboard
data class Sequential(val primitiveTopology: PrimitiveTopology) : MeshDraw.MeshIndexBinding, Record

A draw that uses vanilla's shared sequential index buffer for the given topology.

Link copied to clipboard
data class Uploaded(val slice: GpuBufferSlice, val type: IndexType) : MeshDraw.MeshIndexBinding, Record

A dedicated uploaded index buffer owned by the mesh storage strategy.