zenfg 0.1.0

A FrameGraph compiler and transient-resource executor for wgpu
Documentation
1
2
3
4
5
6
7
8
9
10
error[E0521]: borrowed data escapes outside of closure
  --> tests/ui/callback_context_escape.rs:10:13
   |
 4 |     let mut escaped = None;
   |         ----------- `escaped` declared here, outside of the closure body
...
 9 |         .finish_command(|ctx| {
   |                          --- `ctx` is a reference that is only valid in the closure body
10 |             escaped = Some(ctx.encoder);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctx` escapes the closure body here