#gpu #vulkan #allocation #no-std

no-std gpu-descriptor-types

Core types of gpu-descriptor crate

1 unstable release

0.1.1 Jan 23, 2021
0.1.0 Jan 23, 2021

#433 in Graphics APIs

Download history 15150/week @ 2022-06-08 14763/week @ 2022-06-15 15613/week @ 2022-06-22 18993/week @ 2022-06-29 14793/week @ 2022-07-06 15705/week @ 2022-07-13 16099/week @ 2022-07-20 19513/week @ 2022-07-27 17960/week @ 2022-08-03 17087/week @ 2022-08-10 19237/week @ 2022-08-17 19924/week @ 2022-08-24 16352/week @ 2022-08-31 16092/week @ 2022-09-07 15924/week @ 2022-09-14 15002/week @ 2022-09-21

66,059 downloads per month
Used in 537 crates (4 directly)

MIT/Apache

4KB
59 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

~30KB