Cargo Features
[dependencies]
gpu-allocator = { version = "0.26.0", default-features = false, features = ["visualizer", "vulkan", "d3d12", "metal", "public-winapi"] }
- visualizer
-
Enables egui and egui_extras
egui:
Only needed for visualizer.
Affects
gpu-allocator::visualizer
… - vulkan default
-
Enables ash >=0.34, <=0.37
Only needed for Vulkan. Disable all default features as good practice,
such as the ability to link/load a Vulkan library.Affects
gpu-allocator::vulkan
… - d3d12 default
-
Enables windows >=0.51, <=0.52
Affects
gpu-allocator::d3d12
… - metal
-
Enables metal ^0.27.0
Affects
gpu-allocator::metal
… - public-winapi
-
Expose helper functionality for winapi types to interface with gpu-allocator, which is primarily windows-rs driven
Enables winapi
- default = d3d12, vulkan
-
These default features are set whenever
gpu-allocator
is added without
somewhere in the dependency tree.default-features = false