3 releases (breaking)

0.3.0 May 30, 2023
0.2.0 Jan 23, 2021
0.1.0 Nov 9, 2020

#633 in Memory management

Download history 39744/week @ 2023-12-07 34044/week @ 2023-12-14 28624/week @ 2023-12-21 33835/week @ 2023-12-28 42342/week @ 2024-01-04 40910/week @ 2024-01-11 50949/week @ 2024-01-18 46275/week @ 2024-01-25 47889/week @ 2024-02-01 48432/week @ 2024-02-08 53368/week @ 2024-02-15 52684/week @ 2024-02-22 51799/week @ 2024-02-29 49257/week @ 2024-03-07 46034/week @ 2024-03-14 47719/week @ 2024-03-21

203,223 downloads per month
Used in 1,250 crates (5 directly)

MIT/Apache

12KB
88 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

~120KB