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
256,754 每月下载量
用于 1,478 个 Crates (直接使用 2 个)
34KB
576 代码行
gpu-descriptor
为类似 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 License,版本 2.0,(license/APACHE 或 https://apache.ac.cn/licenses/LICENSE-2.0)
- MIT 许可协议 (license/MIT 或 https://open-source.org.cn/licenses/MIT)
。
贡献
除非您明确声明,否则根据 Apache-2.0 许可协议,您提交的任何有意包含在作品中的贡献都将如上所述双许可,无需附加条款或条件。
在 Patreon 上支持我
依赖项
~1.4–2MB
~30K SLoC