Open IgorAlexey opened 6 days ago
Which backend do you use (dawn or wgpu-native)? I never had to re-query the surface when resizing, I believe you shouldn't need to call glfwGetWGPUSurface again.
Hi @eliemichel! I'm using wgpu-native
SOrry for the late reply: here is a variant of step30 that supports resizing: step030-resize
. Tested with wgpu-native on Windows, let me know if it works for you, and if it does not please share a detailed log!
This feels like an extremely fundamental problem, but since the swapchain was gunned down, I've been continually getting segmentation errors when attempting to reimplement resize
The related resources I've found, haven't proven applicable to C++
• Reddit • sotrh.github.io
It seems like they can simply unconfigure the surface, replace dimensions in surface config and reconfigure.
However, GLFW appears to be destroying the surface in a resize? Getting another surface with 'glfwGetWGPUSurface' worked previously but not in this version.