wgpuBufferGetMappedRange

fun wgpuBufferGetMappedRange(buffer: WGPUBuffer, offset: <Error class: unknown class>, size: <Error class: unknown class>): Pointer<Unit>

Returns a mutable pointer to beginning of the mapped range. See GetMappedRangeBehavior for error conditions and guarantees. This function is safe to call inside spontaneous callbacks (see CallbackReentrancy).

Parameters

offset

Byte offset relative to the beginning of the buffer.

size

Byte size of the range to get. The returned pointer is valid for exactly this many bytes.