Cargo Features
[dependencies]
gpu-allocator = { version = "0.27.0", default-features = false, features = ["visualizer", "vulkan", "d3d12", "metal", "public-winapi"] }
- visualizer
-
Enables egui >=0.24, <=0.27 and egui_extras >=0.24, <=0.27
egui:
Only needed for visualizer.
Affects
gpu-allocator::visualizer
… - vulkan default
-
Enables ash
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
Affects
gpu-allocator::d3d12
… - metal
-
Enables metal ^0.29.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