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

Fix unused acceleration structures causing invalid SPIR-V #5463

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

Vecvec
Copy link
Contributor

@Vecvec Vecvec commented Mar 31, 2024

Connections
fixes #5446

Description
When writing out an SPIR-V Module naga adds a ray query extension if an ray intersection or ray desc type is generated, however SPIR-V also requires this to be enabled if an acceleration structure exists, this PR changes this to check for acceleration structure or ray query types.

Testing
using #3631, with this patch in naga added

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@Vecvec Vecvec requested a review from a team as a code owner March 31, 2024 03:36
@teoxoy teoxoy enabled auto-merge (squash) April 2, 2024 10:48
@teoxoy teoxoy merged commit 1ead287 into gfx-rs:trunk Apr 2, 2024
27 checks passed
@Vecvec Vecvec deleted the fix-unused-acceleration-structure branch May 30, 2024 19: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 SPIR-V in a shader with a unused acceleration structure
2 participants