mirror of
https://github.com/visgl/luma.gl.git
synced 2026-01-25 14:08:58 +00:00
563 B
563 B
Storage Buffers
storage buffers represent a flexible mechanism for providing data to shaders, they are not available in WebGL, so applications may need to consider fallbacks.
The alternative mechanism is attributes, a structured and performant mechanism that works on both WebGPU and WebGL, though they are more rigid and have a number of limitations.
Storage Buffer Basics
const buffer = device.createBuffer({usage: Buffer.STORAGE, ...});
model.setBindings({
...
})
Storage buffers have many similarities to uniform buffers.
TBA