wgpuBufferGetConstMappedRange

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

Return

Returns a const pointer to beginning of the mapped range. It must not be written; writing to this range causes undefined behavior. Returns NULL with @ref ImplementationDefinedLogging if:

  • There is any content-timeline error as defined in the WebGPU specification for getMappedRange() (alignments, overlaps, etc.) except for overlaps with other const ranges, which are allowed in C. (JS does not allow this because const ranges do not exist.)

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 wgpuBufferGetConstMappedRange(handler: WGPUBuffer?, offset: ULong, size: ULong): NativeAddress?
actual fun wgpuBufferGetConstMappedRange(handler: WGPUBuffer?, offset: ULong, size: ULong): NativeAddress?