Skip to content

Commit c51643d

Browse files
authored
Fix INIT macro for maxImmediateSize (#545)
This should be WGPU_LIMIT_U32_UNDEFINED like other limits, not 0. I assume this was just a typo on my part in the original PR #529. Found because there was an [unexpected diff](https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/third_party/webgpu-headers/webgpu.h.diff;l=234-235;drc=892bb94dfc85a3e60b25eb2c6e707adfd58e1079) between Dawn's webgpu.h and this one.
1 parent 60cd902 commit c51643d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

webgpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ typedef struct WGPULimits {
23062306
*/
23072307
uint32_t maxComputeWorkgroupsPerDimension;
23082308
/**
2309-
* The `INIT` macro sets this to `0`.
2309+
* The `INIT` macro sets this to @ref WGPU_LIMIT_U32_UNDEFINED.
23102310
*/
23112311
uint32_t maxImmediateSize;
23122312
} WGPULimits WGPU_STRUCTURE_ATTRIBUTE;
@@ -2347,7 +2347,7 @@ typedef struct WGPULimits {
23472347
/*.maxComputeWorkgroupSizeY=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
23482348
/*.maxComputeWorkgroupSizeZ=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
23492349
/*.maxComputeWorkgroupsPerDimension=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
2350-
/*.maxImmediateSize=*/0 _wgpu_COMMA \
2350+
/*.maxImmediateSize=*/WGPU_LIMIT_U32_UNDEFINED _wgpu_COMMA \
23512351
})
23522352

23532353
/**

webgpu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2312,6 +2312,7 @@ structs:
23122312
doc: |
23132313
TODO
23142314
type: uint32
2315+
default: constant.limit_u32_undefined
23152316
- name: multisample_state
23162317
doc: |
23172318
TODO

0 commit comments

Comments
 (0)