Skip to main content

Documentation Index

Fetch the complete documentation index at: https://rive-editor-sidebar-reorg.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

A GPU buffer for vertex, index, or uniform data.

Fields

size

Size in bytes.

Constructors

new

new(size: number, usage: BufferUsage) -> GPUBuffer

Methods

write

write(data: buffer, offset: number?) -> ()
Copy CPU data into the buffer. @param data Source bytes. @param offset Byte offset into the GPU buffer (default 0).