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

无 std gpu-descriptor

Vulkan 类 API 无实现依赖的描述符分配器

8 个版本

0.3.0 2024 年 4 月 9 日
0.2.4 2023 年 9 月 25 日
0.2.3 2022 年 8 月 11 日
0.2.2 2021 年 11 月 17 日
0.1.0 2021 年 1 月 23 日

#21 in 图形 API

Download history 50875/week @ 2024-05-01 42537/week @ 2024-05-08 44656/week @ 2024-05-15 48394/week @ 2024-05-22 51086/week @ 2024-05-29 51104/week @ 2024-06-05 53136/week @ 2024-06-12 48661/week @ 2024-06-19 51157/week @ 2024-06-26 57031/week @ 2024-07-03 61181/week @ 2024-07-10 61691/week @ 2024-07-17 59371/week @ 2024-07-24 59857/week @ 2024-07-31 68585/week @ 2024-08-07 58876/week @ 2024-08-14

256,754 每月下载量
用于 1,478 个 Crates (直接使用 2 个)

MIT/Apache 许可协议

34KB
576 代码行

gpu-descriptor

crates docs actions MIT/Apache loc

为类似 Vulkan 的 API 提供快速从描述符池分配描述符集的库,具有最低开销和零碎片。

简单使用

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.
);

许可协议

根据您的选择,受以下任一许可协议的保护

贡献

除非您明确声明,否则根据 Apache-2.0 许可协议,您提交的任何有意包含在作品中的贡献都将如上所述双许可,无需附加条款或条件。

在 Patreon 上支持我

Support me on Patreon

依赖项

~1.4–2MB
~30K SLoC