GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

GPUBuffer: unmap() method

WebGPU API

WebGPU API

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 GPUBuffer.mapAsync() (the GPU cannot access a mapped `GPUBuffer`).

When `unmap()` is called, any ArrayBuffers created via GPUBuffer.getMappedRange() are detached.

## Syntax

```js-nolint
unmap()
```

### Parameters

None.

### Return value

None (undefined).

## Examples

See the [main `GPUBuffer` page](/docs/Web/API/GPUBuffer#examples) for an example.

## Specifications

## Browser compatibility

## See also

- The [WebGPU API](/docs/Web/API/WebGPU_API)

source: MDN Web Docs mirror · page

Cite this

"GPUBuffer: unmap() method". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/unmap

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·