Skip to content

Conversation

@andyleiserson
Copy link
Contributor

On top of #8871.

@inner-daemons pointed out that we weren't actually rejecting shaders specifying an unsupported enable extension if they didn't use the functionality.

This change corrects that.

Testing
Adds tests in wgsl_errors and a GPU test.

Squash or Rebase? Squash (after #8871 is merged)

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

Previously we required that the enable extension be declared and that
the capability be present if the functionality was used, but allowed the
extension to be declared if the functionality was not used.
@inner-daemons
Copy link
Collaborator

@andyleiserson Not necessarily related to this PR, but the WGSL errors test file is getting pretty long. Should we consider splitting it up into different files/modules? It might also just not matter which is fine.

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