gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 548 forks source link

avoid panic & error propagation on DSV creation #3713

Closed Imberflur closed 3 years ago

Imberflur commented 3 years ago

Fixes #3711

Tries to mimic the fix for the Dx12 backend. This works for me, but I'm not sure how ideal this is because it pretty much ignores any error from view_image_as_depth_stencil when creating the image view, maybe the ignored errors should be logged?

PR checklist:

bors[bot] commented 3 years ago

Build succeeded: