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 QuerySet ownership of ComputePass #5671

Draft
wants to merge 25 commits into
base: trunk
Choose a base branch
from

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented May 5, 2024

Connections

Part of a series towards lifetime removal on compute passes:

last piece of solving lifetime constraints for ComputePass

Description
Technically this PR is a bugfix: Previously, when destroying a QuerySet that is used in any way (either write_timestamp, ComputePassTimestampWrites or begin_pipeline_statistics_query) before executing the pass, we would crash.
This solves this as in the PRs before by taking ownership of the query the moment it is provided.

Testing
Adds two new tests that test for gracefully handling destroyed query set before the compute pass is executed.
Both tests failed before the fix.

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.

Wumpf added 25 commits April 23, 2024 09:06
…rectly on recording

TODO:
* bind groups don't work because the Binder gets an id only
* wgpu level error handling is missing
…hod of compute/render pass instead of encoder
…mestamp, timestamp_writes (on desc) and pipeline statistic queries
@Wumpf Wumpf changed the title Fix QuerySet reference counting on ComputePass Fix QuerySet ownership of ComputePass May 5, 2024
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.

None yet

1 participant