Repository navigation
Relax lifetimes on TextRenderer::render() - #116
Conversation
|
Could you explain a use case that can't use the existing lifetimes? We're basically trying to follow the pattern in https://github.com/gfx-rs/wgpu/wiki/Encapsulating-Graphics-Work#render |
I'm having issues trying to get code to compile with this crate when defining callbacks with wgpu 22.1.0, glyphon 0.6.0, and egui 0.29.0 due to the lifetime restrictions. The WGPU lifetime changes are explained in this PR: emilk/egui#5149 |
|
This primarily matters when you erase the lifetime on the pass using |
|
Ah ok, that makes sense - if you're erasing the render pass lifetime to
|
The method's lifetimes are far too restrictive, which makes the method really annoying to use. I'm not sure if you have any plans to make use of these restrictions in the future, but I don't see why you would need to.