3 个不稳定版本

0.2.0 2024年4月9日
0.1.2 2023年9月25日
0.1.1 2021年1月23日
0.1.0 2021年1月23日

内存管理中排名424

Download history · Rust 包仓库 50778/week @ 2024-04-16 · Rust 包仓库 47998/week @ 2024-04-23 · Rust 包仓库 50011/week @ 2024-04-30 · Rust 包仓库 41976/week @ 2024-05-07 · Rust 包仓库 42504/week @ 2024-05-14 · Rust 包仓库 46495/week @ 2024-05-21 · Rust 包仓库 49916/week @ 2024-05-28 · Rust 包仓库 49402/week @ 2024-06-04 · Rust 包仓库 51153/week @ 2024-06-11 · Rust 包仓库 48519/week @ 2024-06-18 · Rust 包仓库 48617/week @ 2024-06-25 · Rust 包仓库 56966/week @ 2024-07-02 · Rust 包仓库 59059/week @ 2024-07-09 · Rust 包仓库 61261/week @ 2024-07-16 · Rust 包仓库 57651/week @ 2024-07-23 · Rust 包仓库 59121/week @ 2024-07-30 · Rust 包仓库

每月下载量248,862
用于1,454 个crates(直接使用4个)

MIT/Apache

6KB
78

gpu-descriptor

crates docs actions MIT/Apache loc

一个库,用于从描述符池中快速分配描述符集,以Vulkan-like 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

依赖项

~110KB