const descriptor = {
usage: GPUBufferUsage.COPY_SRC | GPUBufferUsage.MAP_WRITE,
};Bitwise flags / notebook
Bitwise flags
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
if (buffer.usage & GPUBufferUsage.MAP_WRITE) {
// Buffer has MAP_WRITE usage
}