For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class UniformBuffer

The buffer behind one std140 uniform block, bound to a fixed binding point. Callers write members into pending at the layout's offsets and call upload, which skips the GPU write when nothing changed. Uploads use bufferData because Apple's OpenGL driver stalls a bufferSubData into a buffer a pending draw still reads (#8468).

Index

Constructors

Properties

binding: number
buffer: WebGLBuffer
contentWords: number
context: Context
hasData: boolean
pending: Float32Array
pendingWords: Uint32Array
uploaded: Float32Array
uploadedWords: Uint32Array

Methods

  • Restores the indexed binding after external rendering without uploading unchanged data.

    Returns void

  • Returns void

  • Returns void

Was this helpful?