Skip to content

Commit

Permalink
Remove all "Unknown" async statuses (#415)
Browse files Browse the repository at this point in the history
These were used by Dawn to indicate wire connection errors, but those
should either be Success or InstanceDropped (TBD which).
  • Loading branch information
kainino0x authored Nov 14, 2024
1 parent 91cc361 commit 79afea1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ typedef enum WGPUCompilationInfoRequestStatus {
WGPUCompilationInfoRequestStatus_Success = 0x00000001,
WGPUCompilationInfoRequestStatus_InstanceDropped = 0x00000002,
WGPUCompilationInfoRequestStatus_Error = 0x00000003,
WGPUCompilationInfoRequestStatus_Unknown = 0x00000004,
WGPUCompilationInfoRequestStatus_Force32 = 0x7FFFFFFF
} WGPUCompilationInfoRequestStatus WGPU_ENUM_ATTRIBUTE;

Expand Down Expand Up @@ -467,7 +466,6 @@ typedef enum WGPUCreatePipelineAsyncStatus {
WGPUCreatePipelineAsyncStatus_InstanceDropped = 0x00000002,
WGPUCreatePipelineAsyncStatus_ValidationError = 0x00000003,
WGPUCreatePipelineAsyncStatus_InternalError = 0x00000004,
WGPUCreatePipelineAsyncStatus_Unknown = 0x00000005,
WGPUCreatePipelineAsyncStatus_Force32 = 0x7FFFFFFF
} WGPUCreatePipelineAsyncStatus WGPU_ENUM_ATTRIBUTE;

Expand Down Expand Up @@ -594,7 +592,6 @@ typedef enum WGPUMapAsyncStatus {
WGPUMapAsyncStatus_InstanceDropped = 0x00000002,
WGPUMapAsyncStatus_Error = 0x00000003,
WGPUMapAsyncStatus_Aborted = 0x00000004,
WGPUMapAsyncStatus_Unknown = 0x00000005,
WGPUMapAsyncStatus_Force32 = 0x7FFFFFFF
} WGPUMapAsyncStatus WGPU_ENUM_ATTRIBUTE;

Expand Down Expand Up @@ -704,7 +701,6 @@ typedef enum WGPUQueueWorkDoneStatus {
WGPUQueueWorkDoneStatus_Success = 0x00000001,
WGPUQueueWorkDoneStatus_InstanceDropped = 0x00000002,
WGPUQueueWorkDoneStatus_Error = 0x00000003,
WGPUQueueWorkDoneStatus_Unknown = 0x00000004,
WGPUQueueWorkDoneStatus_Force32 = 0x7FFFFFFF
} WGPUQueueWorkDoneStatus WGPU_ENUM_ATTRIBUTE;

Expand All @@ -713,15 +709,13 @@ typedef enum WGPURequestAdapterStatus {
WGPURequestAdapterStatus_InstanceDropped = 0x00000002,
WGPURequestAdapterStatus_Unavailable = 0x00000003,
WGPURequestAdapterStatus_Error = 0x00000004,
WGPURequestAdapterStatus_Unknown = 0x00000005,
WGPURequestAdapterStatus_Force32 = 0x7FFFFFFF
} WGPURequestAdapterStatus WGPU_ENUM_ATTRIBUTE;

typedef enum WGPURequestDeviceStatus {
WGPURequestDeviceStatus_Success = 0x00000001,
WGPURequestDeviceStatus_InstanceDropped = 0x00000002,
WGPURequestDeviceStatus_Error = 0x00000003,
WGPURequestDeviceStatus_Unknown = 0x00000004,
WGPURequestDeviceStatus_Force32 = 0x7FFFFFFF
} WGPURequestDeviceStatus WGPU_ENUM_ATTRIBUTE;

Expand Down
18 changes: 0 additions & 18 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,6 @@ enums:
- name: error
doc: |
TODO
- name: unknown
doc: |
TODO
- name: compilation_message_type
doc: |
TODO
Expand Down Expand Up @@ -331,9 +328,6 @@ enums:
- name: internal_error
doc: |
TODO
- name: unknown
doc: |
TODO
- name: cull_mode
doc: |
TODO
Expand Down Expand Up @@ -531,9 +525,6 @@ enums:
- name: aborted
doc: |
TODO
- name: unknown
doc: |
TODO
- name: mipmap_filter_mode
doc: |
TODO
Expand Down Expand Up @@ -655,9 +646,6 @@ enums:
- name: error
doc: |
TODO
- name: unknown
doc: |
TODO
- name: request_adapter_status
doc: |
TODO
Expand All @@ -675,9 +663,6 @@ enums:
- name: error
doc: |
TODO
- name: unknown
doc: |
TODO
- name: request_device_status
doc: |
TODO
Expand All @@ -692,9 +677,6 @@ enums:
- name: error
doc: |
TODO
- name: unknown
doc: |
TODO
- name: s_type
doc: |
TODO
Expand Down

0 comments on commit 79afea1

Please sign in to comment.