Skip to content

Commit dda6175

Browse files
committed
reorder some enums to match spec
1 parent 61dd498 commit dda6175

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

webgpu.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ typedef enum WGPUAddressMode {
279279
* No value. See @ref SentinelValues.
280280
*/
281281
WGPUAddressMode_Undefined = 0x00000000,
282-
WGPUAddressMode_Repeat = 0x00000001,
283-
WGPUAddressMode_MirrorRepeat = 0x00000002,
284-
WGPUAddressMode_ClampToEdge = 0x00000003,
282+
WGPUAddressMode_ClampToEdge = 0x00000001,
283+
WGPUAddressMode_Repeat = 0x00000002,
284+
WGPUAddressMode_MirrorRepeat = 0x00000003,
285285
WGPUAddressMode_Force32 = 0x7FFFFFFF
286286
} WGPUAddressMode WGPU_ENUM_ATTRIBUTE;
287287

@@ -404,11 +404,11 @@ typedef enum WGPUCompareFunction {
404404
WGPUCompareFunction_Undefined = 0x00000000,
405405
WGPUCompareFunction_Never = 0x00000001,
406406
WGPUCompareFunction_Less = 0x00000002,
407-
WGPUCompareFunction_LessEqual = 0x00000003,
408-
WGPUCompareFunction_Greater = 0x00000004,
409-
WGPUCompareFunction_GreaterEqual = 0x00000005,
410-
WGPUCompareFunction_Equal = 0x00000006,
411-
WGPUCompareFunction_NotEqual = 0x00000007,
407+
WGPUCompareFunction_Equal = 0x00000003,
408+
WGPUCompareFunction_LessEqual = 0x00000004,
409+
WGPUCompareFunction_Greater = 0x00000005,
410+
WGPUCompareFunction_NotEqual = 0x00000006,
411+
WGPUCompareFunction_GreaterEqual = 0x00000007,
412412
WGPUCompareFunction_Always = 0x00000008,
413413
WGPUCompareFunction_Force32 = 0x7FFFFFFF
414414
} WGPUCompareFunction WGPU_ENUM_ATTRIBUTE;

webgpu.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ enums:
6666
entries:
6767
- name: undefined
6868
doc: No value. See @ref SentinelValues.
69-
- name: repeat
69+
- name: clamp_to_edge
7070
doc: |
7171
TODO
72-
- name: mirror_repeat
72+
- name: repeat
7373
doc: |
7474
TODO
75-
- name: clamp_to_edge
75+
- name: mirror_repeat
7676
doc: |
7777
TODO
7878
- name: backend_type
@@ -240,19 +240,19 @@ enums:
240240
- name: less
241241
doc: |
242242
TODO
243-
- name: less_equal
243+
- name: equal
244244
doc: |
245245
TODO
246-
- name: greater
246+
- name: less_equal
247247
doc: |
248248
TODO
249-
- name: greater_equal
249+
- name: greater
250250
doc: |
251251
TODO
252-
- name: equal
252+
- name: not_equal
253253
doc: |
254254
TODO
255-
- name: not_equal
255+
- name: greater_equal
256256
doc: |
257257
TODO
258258
- name: always

0 commit comments

Comments
 (0)