wgpuBufferGetMappedRange

actual fun wgpuBufferGetMappedRange(handler: WGPUBuffer?, offset: ULong, size: ULong): NativeAddress?
expect fun wgpuBufferGetMappedRange(handler: WGPUBuffer?, offset: ULong, size: ULong): NativeAddress?

Return

Returns a mutable pointer to beginning of the mapped range. Returns NULL with @ref ImplementationDefinedLogging if:

  • There is any content-timeline error as defined in the WebGPU specification for getMappedRange() (alignments, overlaps, etc.)

  • The buffer is not mapped with @ref WGPUMapMode_Write.

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.

actual fun wgpuBufferGetMappedRange(handler: WGPUBuffer?, offset: ULong, size: ULong): NativeAddress?
actual fun wgpuBufferGetMappedRange(handler: WGPUBuffer?, offset: ULong, size: ULong): NativeAddress?