Traverse-Research / gpu-allocator

🦀 GPU memory allocator for Vulkan, DirectX 12 and Metal. Written in pure Rust
https://traverse.nl/
Apache License 2.0
374 stars 49 forks source link

Use std::backtrace #184

Closed stefnotch closed 10 months ago

stefnotch commented 11 months ago

Supersedes https://github.com/Traverse-Research/gpu-allocator/pull/183 . I picked Option<Arc<Backtrace>>, which shouldn't have any overhead, as long as the backtrace flag is not set.

I also bumped up the Rust edition, since the backtrace was added in Rust 1.65.0, which has been released well after the Rust 2021 edition has been released.

stefnotch commented 10 months ago

Closing in favour of #186