MeshDraw

data class MeshDraw(val vertexSlice: GpuBufferSlice, val indexBinding: MeshDraw.MeshIndexBinding, val indexCount: Int) : Record

GPU-ready draw descriptor produced from MeshData.

It stores uploaded vertex data plus an index binding strategy and the draw parameters needed by RenderPass.bindAndDraw.

Constructors

Link copied to clipboard
constructor(vertexSlice: GpuBufferSlice, indexBinding: MeshDraw.MeshIndexBinding, indexCount: Int)

Types

Link copied to clipboard
fun interface IndexUploader
Link copied to clipboard
sealed interface MeshIndexBinding

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

Link copied to clipboard
fun interface VertexUploader

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val vertexSlice: GpuBufferSlice