upload

abstract fun upload(offsetInBytes: Int = 0, sizeInBytes: Int = vertexBuffer.vertexCount * vertexBuffer.vertexFormat.size)(source)

Uploads vertex data to the GPU memory from the shadow buffer.

Parameters

offsetInBytes

The byte offset in the buffer at which the upload will begin. Defaults to 0.

sizeInBytes

The size of the data, in bytes, to upload. Defaults to the total size based on the vertex count and vertex format of the associated VertexBuffer.