Skip to content

Commit

Permalink
Rename WGPUDeviceLostReason_Undefined to Unknown (#288)
Browse files Browse the repository at this point in the history
* Rename WGPUDeviceLostReason_Undefined to Unknown

Please check
https://issues.chromium.org/issues/42241081 for
more information and progress.

* Remove "Undefined"

---------

Co-authored-by: Kai Ninomiya <kainino1@gmail.com>
  • Loading branch information
hocheung-chromium and kainino0x committed May 18, 2024
1 parent aef5e42 commit 8049c32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ typedef enum WGPUCullMode {
} WGPUCullMode WGPU_ENUM_ATTRIBUTE;

typedef enum WGPUDeviceLostReason {
WGPUDeviceLostReason_Undefined = 0x00000000,
WGPUDeviceLostReason_Destroyed = 0x00000001,
WGPUDeviceLostReason_Unknown = 0x00000001,
WGPUDeviceLostReason_Destroyed = 0x00000002,
WGPUDeviceLostReason_Force32 = 0x7FFFFFFF
} WGPUDeviceLostReason WGPU_ENUM_ATTRIBUTE;

Expand Down
4 changes: 3 additions & 1 deletion webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,12 @@ enums:
doc: |
TODO
entries:
- name: undefined
- name: unknown
value: 0x0001
doc: |
TODO
- name: destroyed
value: 0x0002
doc: |
TODO
Expand Down

0 comments on commit 8049c32

Please sign in to comment.