Skip to content

Commit

Permalink
Use same order between LoadOp and StoreOp
Browse files Browse the repository at this point in the history
Just a minor consistency thing.

This order is the same order it's written in the upstream JS spec
(JS doesn't actually care about the order) as well as in Vulkan.

Fixes 65
  • Loading branch information
kainino0x committed Aug 31, 2024
1 parent f020689 commit f9bdf26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ typedef enum WGPUIndexFormat {

typedef enum WGPULoadOp {
WGPULoadOp_Undefined = 0x00000000,
WGPULoadOp_Clear = 0x00000001,
WGPULoadOp_Load = 0x00000002,
WGPULoadOp_Load = 0x00000001,
WGPULoadOp_Clear = 0x00000002,
WGPULoadOp_Force32 = 0x7FFFFFFF
} WGPULoadOp WGPU_ENUM_ATTRIBUTE;

Expand Down
4 changes: 2 additions & 2 deletions webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,10 @@ enums:
- name: undefined
doc: |
TODO
- name: clear
- name: load
doc: |
TODO
- name: load
- name: clear
doc: |
TODO
- name: map_async_status
Expand Down

0 comments on commit f9bdf26

Please sign in to comment.