Releases the allocation (§83).
OptionalgetThe mapped bytes. Valid only between mapAsync resolving and unmap.
OptionalmapResolves when the buffer's contents are mapped into CPU memory —
WP-R1.6's readback path. mode is a GPU_MAP_MODE bit.
OptionalunmapReturns the mapped range to the GPU; the ArrayBuffer is detached.
An opaque GPU buffer handle.
The three mapping members are optional, and presence is the capability — R-30b's optional-context-member rule, applied here so every double built before WP-R1.6's readback still satisfies the type. Only a buffer created with
MAP_READusage may be mapped, and onlyreadPixelscreates one;WebgpuRenderer.readPixelsrejects withUNSUPPORTED_GPU_FEATUREon a device whose buffers cannot map, rather than crashing into an absent member.