Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,11 @@ typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncSta
* (2) The last ref of the device has been (or is being) released: see @ref DeviceRelease.
* This parameter is @ref PassedWithoutOwnership.
*
* @param reason
* An error code explaining why the device was lost.
*
* @param message
* Textual description of the error.
* This parameter is @ref PassedWithoutOwnership.
*/
typedef void (*WGPUDeviceLostCallback)(WGPUDevice const * device, WGPUDeviceLostReason reason, WGPUStringView message, WGPU_NULLABLE void* userdata1, WGPU_NULLABLE void* userdata2) WGPU_FUNCTION_ATTRIBUTE;
Expand Down Expand Up @@ -5938,6 +5942,9 @@ WGPU_EXPORT WGPUBufferMapState wgpuBufferGetMapState(WGPUBuffer buffer) WGPU_FUN
WGPU_EXPORT uint64_t wgpuBufferGetSize(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
WGPU_EXPORT WGPUBufferUsage wgpuBufferGetUsage(WGPUBuffer buffer) WGPU_FUNCTION_ATTRIBUTE;
/**
* @param mode
* The mapping mode (read or write).
*
* @param offset
* Byte offset relative to beginning of the buffer.
*
Expand Down
6 changes: 3 additions & 3 deletions webgpu.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3485,11 +3485,11 @@ callbacks:
passed_with_ownership: false
- name: reason
doc: |
TODO
An error code explaining why the device was lost.
type: enum.device_lost_reason
- name: message
doc: |
TODO
Textual description of the error.
Comment thread
mridulgoyal99 marked this conversation as resolved.
Outdated
type: out_string
passed_with_ownership: false
- name: pop_error_scope
Expand Down Expand Up @@ -3735,7 +3735,7 @@ objects:
args:
- name: mode
doc: |
TODO
The mapping mode (read or write).
type: bitflag.map_mode
- name: offset
doc: |
Expand Down