allocator.rs |
|
24233 |
block.rs |
|
10391 |
buddy.rs |
|
14592 |
config.rs |
|
3455 |
error.rs |
|
4531 |
freelist.rs |
|
16900 |
heap.rs |
|
656 |
lib.rs |
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.
|
3676 |
slab.rs |
|
2859 |
usage.rs |
|
6265 |
util.rs |
|
1378 |