uploadAndSet

open fun uploadAndSet(meshData: MeshData, pipeline: RenderPipeline, rotate: Boolean)

Upload mesh data into this storage's dedicated buffers and refresh the draw state.

Parameters

meshData

built mesh data to upload

pipeline

pipeline used to determine vertex/index layout

rotate

whether to rotate ring buffers before upload (recommended when rebuilding after a frame boundary)