8 releases (breaking)

0.7.0 Feb 7, 2022
0.6.0 Jan 19, 2022
0.5.0 Jun 25, 2021
0.4.0 Apr 28, 2021
0.1.1 Nov 13, 2020

#8 in #allocation

Download history 29/week @ 2022-06-10 57/week @ 2022-06-17 48/week @ 2022-06-24 41/week @ 2022-07-01 33/week @ 2022-07-08 39/week @ 2022-07-15 57/week @ 2022-07-22 23/week @ 2022-07-29 85/week @ 2022-08-05 65/week @ 2022-08-12 52/week @ 2022-08-19 32/week @ 2022-08-26 82/week @ 2022-09-02 102/week @ 2022-09-09 48/week @ 2022-09-16 24/week @ 2022-09-23

256 downloads per month
Used in sierra

MIT/Apache

23KB
320 lines

gpu-alloc

crates docs actions MIT/Apache loc

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.

Usage

Start with fetching DeviceProperties from gpu-alloc-<backend> crate for the backend of choice.
Then create 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.

Backends implementations

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 gpu-alloc-<backend> upgrade.

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.48 or higher due to dependency on erupt crate.

License

Licensed under either of

at your option.

Contributions

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.

Donate

Become a patron

Dependencies

~6.5MB
~156K SLoC