5 releases (3 breaking)
|new 0.4.3||Apr 20, 2021|
|0.4.2||Mar 30, 2021|
|0.3.0||Jan 23, 2021|
|0.1.1||Nov 10, 2020|
#27 in Memory management
22,290 downloads per month
Used in 70 crates (3 directly)
Implementation agnostic memory allocator for Vulkan like APIs.
This crate is intended to be used as part of safe API implementations.
Use with caution. There are unsafe functions all over the place.
Start with fetching
gfx-alloc-<backend> crate for the backend of choice.
GpuAllocator instance and use it for all device memory allocations.
GpuAllocator will take care for all necessary bookkeeping like memory object count limit,
heap budget and memory mapping.
Backend supporting crates should not depend on this crate.
Instead they should depend on
gpu-alloc-types which is much more stable,
allowing to upgrade
gpu-alloc version without
Supported Rust Versions
The minimum supported version is 1.40. The current version is not guaranteed to build on Rust versions earlier than the minimum supported version.
gpu-alloc-erupt crate requires version 1.46 or higher due to dependency on
Licensed under either of
- Apache License, Version 2.0, (license/APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (license/MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.