gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
11.46k stars 855 forks source link

Renderpass take resource ownership #5884

Open Wumpf opened 2 days ago

Wumpf commented 2 days ago

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)

TODO:

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

Checklist