#descriptor-set #vulkan #gpu #no-std

no-std gpu-descriptor

Implementation agnostic descriptor allocator for Vulkan like APIs

9 releases

0.3.1 Dec 19, 2024
0.3.0 Apr 9, 2024
0.2.4 Sep 25, 2023
0.2.3 Aug 11, 2022
0.1.0 Jan 23, 2021

#22 in Graphics APIs

Download history 64288/week @ 2024-09-22 60456/week @ 2024-09-29 64526/week @ 2024-10-06 64550/week @ 2024-10-13 57878/week @ 2024-10-20 65447/week @ 2024-10-27 65071/week @ 2024-11-03 60003/week @ 2024-11-10 66225/week @ 2024-11-17 66266/week @ 2024-11-24 74100/week @ 2024-12-01 67655/week @ 2024-12-08 70883/week @ 2024-12-15 57475/week @ 2024-12-22 60896/week @ 2024-12-29 82348/week @ 2025-01-05

279,579 downloads per month
Used in 1,831 crates (3 directly)

MIT/Apache

34KB
576 lines

gpu-descriptor

crates docs actions MIT/Apache loc

Library for Vulkan-like APIs to allocated descriptor sets from descriptor pools fast, with least overhead and zero fragmentation.

Straightforward usage:

use gpu_descriptor::DescriptorAllocator;

let mut allocator = DescriptorAllocator::new(max_update_after_bind_descriptors_in_all_pools); // Limit as dictated by API for selected hardware

let result = allocator.allocate(
    device, // Implementation of `gpu_descriptor::DescriptorDevice`. Comes from plugins.
    layout, // Descriptor set layout recognized by device's type.
    flags,  // Flags specified when layout was created.
    layout_descriptor_count, // Descriptors count in the layout.
    count, // count of sets to allocated.
);

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.

Support me on Patreon

Support me on Patreon

Dependencies

~0.6–1MB
~16K SLoC