web api instance method
GPUBuffer: unmap() method
Secure contextAvailable in workers
The unmap() method of the
GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with mapAsync() (the GPU cannot access a mapped GPUBuffer).
When unmap() is called, any ArrayBuffers created via getMappedRange() are detached.
Syntax
unmap()
Parameters
None.
Return value
None (undefined).
Examples
See the main GPUBuffer page for an example.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The WebGPU API