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

Renderpass take resource ownership #5884

Merged
merged 15 commits into from
Jul 1, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jun 26, 2024

Connections

Description
Just like ComputePass before, we now take ownership of all ingoing resources to a RenderPass right away. We also take ownership of the parent encoder, making it possible to convert RenderPass<'a>->RenderPass<'static> (as opt-in)

Testing
New ownership tests added (very similar to what we added for compute pass previously)

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 Wumpf force-pushed the renderpass-take-resource-ownership branch from a7bec42 to c097717 Compare June 29, 2024 11:55
@Wumpf Wumpf force-pushed the renderpass-take-resource-ownership branch 2 times, most recently from d10100d to bdc6328 Compare June 30, 2024 12:31
@Wumpf Wumpf force-pushed the renderpass-take-resource-ownership branch from 6347d28 to ebbbdf2 Compare June 30, 2024 12:57
@Wumpf Wumpf force-pushed the renderpass-take-resource-ownership branch from ebbbdf2 to a6bcbf1 Compare June 30, 2024 13:05
@Wumpf Wumpf force-pushed the renderpass-take-resource-ownership branch from a6bcbf1 to a463cdd Compare June 30, 2024 13:07
@Wumpf Wumpf marked this pull request as ready for review June 30, 2024 13:14
@Wumpf Wumpf requested a review from a team as a code owner June 30, 2024 13:14
@Wumpf Wumpf merged commit 0a76c0f into gfx-rs:trunk Jul 1, 2024
25 checks passed
@Wumpf Wumpf deleted the renderpass-take-resource-ownership branch July 1, 2024 16:36
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.

Lifetimes on RenderPass make it difficult to use.
2 participants