Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let validation check for more unsupported builtins. #1962

Merged

Conversation

jimblandy
Copy link
Member

Add valid::Capabilities flags for the ClipDistance and CullDistance builtins, which are not supported by all back ends.

Have the CLI perform valation with only those capabilities that the requested back ends support.

Fixes #1961.

Add `valid::Capabilities` flags for the `ClipDistance` and
`CullDistance` builtins, which are not supported by all back ends.

Have the CLI perform valation with only those capabilities that the
requested back ends support.

Fixes gfx-rs#1961.
Copy link
Member

@teoxoy teoxoy left a comment

Choose a reason for hiding this comment

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

LGTM

@jimblandy jimblandy merged commit 1c21fc0 into gfx-rs:master Jun 1, 2022
@jimblandy jimblandy deleted the unsupported-backend-builtin-error branch June 1, 2022 21:20
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.

Naga generates invalid WGSL for struct members with unsupported builtin attributes
2 participants