We don't create a new surface upon resize. We needed that on dx12 (since the framebuffer images were not resized with the original surface), but https://github.com/gfx-rs/gfx/pull/2357 fixed this. Also the Vulkan validation layer didn't like this solution.
We store the Adpater in the Device, so we don't need to pass down an &Adapter upon recreating the swapchain. Also it's easier to store the Adapter in the Device instead of examples/wrench.
Updated the gfx version
I still have to figure out the changes made in gfx-metal related to hidpi, because the wpt tests with metal aren't passing, since the result images are not scaled properly.
This PR changes the way we handle resizing:
&Adapter
upon recreating the swapchain. Also it's easier to store the Adapter in the Device instead of examples/wrench.I still have to figure out the changes made in gfx-metal related to hidpi, because the wpt tests with metal aren't passing, since the result images are not scaled properly.