After https://github.com/gfx-rs/wgpu-rs/pull/778, get_swap_chain_preferred_format can return None 'if the adapter does not support the surface'. I just had this happen on a friend's laptop with no obvious cause. Is it possible to handle this case by guessing a good swapchain format, or is the only good option to end the program?
Turns out the correct way to handle this is to pass in the surface to the compatible_surface field of RequestAdapterOptions and not have to deal with this problem 🥴🥴
After https://github.com/gfx-rs/wgpu-rs/pull/778,
get_swap_chain_preferred_format
can returnNone
'if the adapter does not support the surface'. I just had this happen on a friend's laptop with no obvious cause. Is it possible to handle this case by guessing a good swapchain format, or is the only good option to end the program?