API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classWebGl2RenderBuffer
Backend-agnostic GPU buffer descriptor. Holds the buffer type (`ArrayBuffer` / `ElementArrayBuffer`), usage hint (`Static` / `Dynamic` / `Stream`), the typed-array CPU-side data, and a version counter so the runtime can detect mutations and re-upload lazily. The actual `WebGLBuffer` lifecycle is managed by the runtime binding via WebGl2RenderBufferRuntime.
import { WebGl2RenderBuffer } from '@codexo/exojs' Backend-agnostic GPU buffer descriptor. Holds the buffer type (`ArrayBuffer` / `ElementArrayBuffer`), usage hint (`Static` / `Dynamic` / `Stream`), the typed-array CPU-side data, and a version counter so the runtime can detect mutations and re-upload lazily. The actual `WebGLBuffer` lifecycle is managed by the runtime binding via WebGl2RenderBufferRuntime.
new(type: BufferTypes, data: DataContainer, usage: BufferUsage): WebGl2RenderBuffer bind(): void connect(runtime: WebGl2RenderBufferRuntime): this destroy(): void disconnect(): this upload(data: DataContainer, offset: number): void data: DataContainer type: number usage: BufferUsage version: number