Functions whose first argument has type WGPUBuffer.
More...
Functions whose first argument has type WGPUBuffer.
◆ wgpuBufferDestroy()
◆ wgpuBufferGetConstMappedRange()
void const * wgpuBufferGetConstMappedRange |
( |
WGPUBuffer | buffer, |
|
|
size_t | offset, |
|
|
size_t | size ) |
Returns a const pointer to beginning of the mapped range. It must not be written; writing to this range causes undefined behavior. See GetMappedRange/GetConstMappedRange Behavior for error conditions and guarantees. This function is safe to call inside spontaneous callbacks (see Callback Reentrancy).
- 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. |
◆ wgpuBufferGetMapState()
◆ wgpuBufferGetMappedRange()
void * wgpuBufferGetMappedRange |
( |
WGPUBuffer | buffer, |
|
|
size_t | offset, |
|
|
size_t | size ) |
Returns a mutable pointer to beginning of the mapped range. See GetMappedRange/GetConstMappedRange Behavior for error conditions and guarantees. This function is safe to call inside spontaneous callbacks (see Callback Reentrancy).
- 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. |
◆ wgpuBufferGetSize()
◆ wgpuBufferGetUsage()
◆ wgpuBufferMapAsync()
◆ wgpuBufferSetLabel()
◆ wgpuBufferUnmap()
◆ wgpuBufferAddRef()
◆ wgpuBufferRelease()