3 个版本 (破坏性)
0.3.0 | 2024 年 4 月 9 日 |
---|---|
0.2.0 | 2022 年 6 月 21 日 |
0.1.0 | 2022 年 2 月 7 日 |
#682 在 图形 API 中
每月 131 次下载
17KB
236 代码行
gpu-descriptor
一个用于从描述符池快速分配描述符集的库,具有最小的开销和零碎片。
简单使用
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 或 http://opensource.org/licenses/MIT)
根据您的选择。
贡献
除非您明确声明,否则根据 Apache-2.0 许可证定义的任何有意提交的工作,都将根据上述条款进行双许可,而无需任何额外的条款或条件。
在 Patreon 上支持我
依赖项
~5.5MB
~131K SLoC