Skip to content

Rename WGPUInstanceFeatureName_TimedWaitAnyEnable -> TimedWaitAny#549

Merged
kainino0x merged 2 commits into
webgpu-native:mainfrom
kainino0x:timedwaitany
Jun 18, 2025
Merged

Rename WGPUInstanceFeatureName_TimedWaitAnyEnable -> TimedWaitAny#549
kainino0x merged 2 commits into
webgpu-native:mainfrom
kainino0x:timedwaitany

Conversation

@kainino0x
Copy link
Copy Markdown
Collaborator

@kainino0x kainino0x commented Jun 18, 2025

WGPUInstanceFeature_TimedWaitAnyEnable (formerly WGPUInstanceCapabilities.timedWaitAnyEnable) should be called simply TimedWaitAny now that it's a feature name.

Aside, it's arguably redundant with timedWaitAnyMaxCount. It would be simpler to use if we didn't have a feature, and just set timedWaitAnyMaxCount to 0 or not. The reason this wasn't the case originally is because it has a minimum value of 64, so if we did this then:

  • 0 -> disabled with a max of 0
  • 1 -> enabled with a max of 64

which is slightly odd. I'm inclined not to bother to change this.

`WGPUInstanceFeature_TimedWaitAnyEnable` (formerly
`WGPUInstanceCapabilities.timedWaitAnyEnable`) should be called simply
`TimedWaitAny` now that it's a feature name.

Aside, it's arguably redundant with `timedWaitAnyMaxCount`. It would be
simpler to use if we didn't have a feature, and just set
`timedWaitAnyMaxCount` to 0 or not. The reason this wasn't the case
originally is because it has a minimum value of 64, so if we did this
then 0 -> disabled at 0, 1 -> enabled at 64, which is slightly odd. I'm
inclined not to bother to change this.
@kainino0x kainino0x enabled auto-merge (squash) June 18, 2025 21:10
@kainino0x kainino0x merged commit c13888a into webgpu-native:main Jun 18, 2025
5 checks passed
@kainino0x
Copy link
Copy Markdown
Collaborator Author

(Going ahead with landing now, but feel free to comment later and I'll follow up)

@kainino0x kainino0x deleted the timedwaitany branch June 18, 2025 21:11
copybara-service Bot pushed a commit to google/dawn that referenced this pull request Jun 27, 2025
Per upstream changes:
- webgpu-native/webgpu-headers#533
- webgpu-native/webgpu-headers#549

Fixed: 414868137
Change-Id: I3c4603738210d6180d930594f4b49259b41a4730
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/245242
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants