mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 17:19:11 +01:00
recreate swapchain on framework.rs examples on resize, ref #352
This commit is contained in:
1 parent
8c4d814607
commit
68754e6ca9
1 file changed
+1
@@ -237,6 +237,7 @@ fn start<E: Example>(
|
||||
sc_desc.width = size.width;
|
||||
sc_desc.height = size.height;
|
||||
example.resize(&sc_desc, &device, &queue);
|
||||
swap_chain = device.create_swap_chain(&surface, &sc_desc);
|
||||
}
|
||||
event::Event::WindowEvent { event, .. } => match event {
|
||||
WindowEvent::KeyboardInput {
|
||||
|
||||
Reference in new issue
Block a user