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
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
- context: Context
- binding: number
- layout: Std140Layout
Returns UniformBuffer
Internal
The buffer behind one std140 uniform block, bound to a fixed binding point. Callers write members into
pendingat the layout's offsets and callupload, which skips the GPU write when nothing changed. Uploads usebufferDatabecause Apple's OpenGL driver stalls abufferSubDatainto a buffer a pending draw still reads (#8468).