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

no-std gpu-descriptor-ash

gpu-descriptor 与 ash 的集成

3 个版本 (破坏性)

0.3.0 2024 年 4 月 9 日
0.2.0 2022 年 6 月 21 日
0.1.0 2022 年 2 月 7 日

#682图形 API

Download history 1/week @ 2024-05-17

每月 131 次下载

MIT/Apache

17KB
236 代码行

gpu-descriptor

crates docs actions MIT/Apache loc

一个用于从描述符池快速分配描述符集的库,具有最小的开销和零碎片。

简单使用

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

依赖项

~5.5MB
~131K SLoC