Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
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