Skip to content

[breaking] Refactor Instance capabilities into features/limits, add SPIRV feature#533

Merged
kainino0x merged 2 commits into
webgpu-native:mainfrom
kainino0x:instance-features-limits
May 1, 2025
Merged

[breaking] Refactor Instance capabilities into features/limits, add SPIRV feature#533
kainino0x merged 2 commits into
webgpu-native:mainfrom
kainino0x:instance-features-limits

Conversation

@kainino0x
Copy link
Copy Markdown
Collaborator

@kainino0x kainino0x commented Apr 25, 2025

  • I did NOT rename WGPUFeatureName, WGPUSupportedFeatures, and WGPULimits because they're used for both Adapter and Device, so picking one could be confusing. That can be a separate step anyway.
  • WGPUWGSLLanguageFeatureName could be flattened into WGPUInstanceFeatureName (EDIT: but they're different because they're not disableable, so these would be "auto-enabled"). I haven't done this here.

Issue #522 (dawn bug https://crbug.com/414868137)

@kainino0x kainino0x added post-RC breaking change Any API/ABI breaking change after the first "release candidate" extensibility Adding features without breaking API changes labels Apr 25, 2025
@kainino0x kainino0x force-pushed the instance-features-limits branch 2 times, most recently from b33fdc9 to aecc0b2 Compare April 25, 2025 03:16
@kainino0x kainino0x marked this pull request as ready for review April 25, 2025 03:17
- I did NOT rename WGPUFeatureName, WGPUSupportedFeatures, and
  WGPULimits because they're used for both Adapter and Device, so
  picking one could be confusing.
- WGPUWGSLLanguageFeatureName could be flattened into
  WGPUInstanceFeatureName.
@kainino0x kainino0x force-pushed the instance-features-limits branch from aecc0b2 to 1a3b312 Compare April 25, 2025 03:36
Comment thread webgpu.h
@kainino0x
Copy link
Copy Markdown
Collaborator Author

  • I did NOT rename WGPUFeatureName, WGPUSupportedFeatures, and WGPULimits because they're used for both Adapter and Device, so picking one could be confusing. That can be a separate step anyway.

@cwfitzgerald given this, how strongly do you feel about renaming them, and how would you name them?

@kainino0x kainino0x changed the title Refactor Instance capabilities into features/limits, add SPIRV feature [breaking] Refactor Instance capabilities into features/limits, add SPIRV feature Apr 26, 2025
@kainino0x kainino0x added !discuss Needs discussion (at meeting or online) and removed !discuss Needs discussion (at meeting or online) labels May 1, 2025
@kainino0x
Copy link
Copy Markdown
Collaborator Author

May 1 meeting:

  • Looks good, separate PR for renames

@kainino0x kainino0x enabled auto-merge (squash) May 1, 2025 20:22
@kainino0x kainino0x merged commit 9202463 into webgpu-native:main May 1, 2025
5 checks passed
@kainino0x kainino0x deleted the instance-features-limits branch May 1, 2025 20:23
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

extensibility Adding features without breaking API changes post-RC breaking change Any API/ABI breaking change after the first "release candidate"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants