Open Slabity opened 5 years ago
Window resizing should be supported by Graph
.
But design is incomplete yet.
Before that we can use half-solution - resize swapchain and scale to it.
Complete solution should also be able to resize all render targets that must match size of swapchain images.
Hey there, any news on the examples yet? It looks like https://github.com/amethyst/rendy/pull/79 should have solved the existing issues making this impractical.
Examples still don't recreate graph's transient images so after resizing rendering still happens with same resolution and then presentation node scales rendering result to match window size.
Any news on this, I'm at a complete loss on how to handle window resizing.
Any news on this, I'm at a complete loss on how to handle window resizing.
If you use render graph, then the easiest way is to recreate it on window resize.
Note that Rendy is not maintained by anyone at the moment, so if you're just starting I'd suggest to use an active project instead.
I'd suggest to use an active project instead.
@8bitkitkat WGPU is a great project to get started with for new Rust graphics development.
WGPU is a great project
True. I use it myself as one of the backends in rendy successor.
Currently, all the provided examples fail to handle resizing or recreation of the Window. It would be useful to have an example that shows the proper way of recreating the swapchain.