#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

#536 in Graphics APIs

Download history 19196/week @ 2022-11-27 21044/week @ 2022-12-04 17857/week @ 2022-12-11 18831/week @ 2022-12-18 14202/week @ 2022-12-25 18440/week @ 2023-01-01 21133/week @ 2023-01-08 21479/week @ 2023-01-15 21201/week @ 2023-01-22 25238/week @ 2023-01-29 26080/week @ 2023-02-05 27705/week @ 2023-02-12 26185/week @ 2023-02-19 24582/week @ 2023-02-26 26751/week @ 2023-03-05 24719/week @ 2023-03-12

106,465 downloads per month
Used in 582 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

~51KB