getMappedRange method
The getMappedRange()
method of the
GPUBuffer interface returns an ArrayBuffer
containing the mapped
contents of the GPUBuffer
in the specified range.
This can only happen once the GPUBuffer
has been successfully mapped
with GPUBuffer.mapAsync (this can be checked via GPUBuffer.mapState).
While the GPUBuffer
is mapped it cannot be used in any GPU commands.
When you have finished working with the GPUBuffer
values, call
GPUBuffer.unmap to unmap it, making it accessible to the GPU again.
Implementation
external JSArrayBuffer getMappedRange([
GPUSize64 offset,
GPUSize64 size,
]);