mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
b53a00e730058a7a34ce7c34e7515502f2c4bc15
778: Return None from get_swap_chain_preferred_format if the adapter does not support the surface r=kvark a=OlegOAndreev Fixes #777 Almost every other method in wgpu panics on failure, so I decided to make the return value an `Option<TextureFormat>`, not a `Result<Option<TextureFormat>>` Co-authored-by: Oleg Andreev <ooandreev@yandex-team.ru>
Languages
Rust
78.5%
WGSL
13%
GLSL
3.1%
Metal
2.8%
HLSL
2.3%
Other
0.2%