Skip to content

De-register Compat enum namespace#584

Merged
kainino0x merged 2 commits intowebgpu-native:mainfrom
kainino0x:compat2
Mar 9, 2026
Merged

De-register Compat enum namespace#584
kainino0x merged 2 commits intowebgpu-native:mainfrom
kainino0x:compat2

Conversation

@kainino0x
Copy link
Collaborator

There are only two compat extensions (CompatibilityModeLimits and textureBindingViewDimension). Only one of them
(textureBindingViewDimension) is input-only and can possibly take advantage of this mechanism.

So instead of having a special carveout for all Compat extensions, we just need one carveout for the SType for textureBindingViewDimension.

As far as I know, no one has implemented this special carveout (most or all current implementations want to support Compat), but to be safe just say the 0x0002 block is never to be used for anything.

Fixed #547
CC #470

There are only two compat extensions (CompatibilityModeLimits and
textureBindingViewDimension). Only one of them
(textureBindingViewDimension) is input-only and can possibly take
advantage of this mechanism.

So instead of having a special carveout for all Compat extensions, we
just need one carveout for the SType for textureBindingViewDimension.

As far as I know, no one has implemented this special carveout (most or
all current implementations want to support Compat), but to be safe we
just say the 0x0002 block is never to be used for anything.
@cwfitzgerald cwfitzgerald self-assigned this Feb 24, 2026
@kainino0x
Copy link
Collaborator Author

@cwfitzgerald bump!

Copy link
Collaborator

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay

@kainino0x kainino0x enabled auto-merge (squash) March 9, 2026 20:25
@kainino0x
Copy link
Collaborator Author

Thanks!

@kainino0x kainino0x merged commit 4e3f787 into webgpu-native:main Mar 9, 2026
5 checks passed
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.

How do Compat extension structs work on output?

4 participants