Cargo Features
[dependencies]
vulkayes-core = { version = "0.1.0", default-features = false, features = ["host_allocator", "rust_host_allocator", "naive_device_allocator", "multi_thread", "insecure_hash", "runtime_implicit_validations", "vulkan1_1", "vulkan1_2", "log_release_max_level_off", "log_release_max_level_error", "log_release_max_level_warn", "log_release_max_level_info", "log_release_max_level_debug", "log_release_max_level_trace", "log_max_level_off", "log_max_level_error", "log_max_level_warn", "log_max_level_info", "log_max_level_debug", "log_max_level_trace", "parking_lot"] }
- default = log_release_max_level_off, naive_device_allocator, vulkan1_2
-
These default features are set whenever
vulkayes-core
is added without
somewhere in the dependency tree.default-features = false - host_allocator rust_host_allocator?
-
enables host allocator Custom variant, making it a sized type
- rust_host_allocator = host_allocator
-
enables rust host memory allocator option
- naive_device_allocator default
-
enables very simple device memory allocator
Affects
device::naive
… - multi_thread
-
enable multi thread support by using Arc<T> and Mutex<T> instead of Rc<T> and RefCell<T>
- insecure_hash = rustc-hash
-
use synchronization primitived from the parking_lot crate instead of the stdlib parking_lot_vutex = ["parking_lot", "multi_thread"] TODO: Fix Mutex.lock() not returning a result
use cryptographically insecure HashMap and HashSet for better peformance - runtime_implicit_validations
-
Validate implicit validations according to the Vulkan spec at runtime if they can't be validated statically
- vulkan1_1 vulkan1_2
- vulkan1_2 default = vulkan1_1
- log_release_max_level_off default
-
Enables release_max_level_off of log
debuging
- log_release_max_level_error
-
Enables release_max_level_error of log
- log_release_max_level_warn
-
Enables release_max_level_warn of log
- log_release_max_level_info
-
Enables release_max_level_info of log
- log_release_max_level_debug
-
Enables release_max_level_debug of log
- log_release_max_level_trace
-
Enables release_max_level_trace of log
- log_max_level_off
-
Enables max_level_off of log
- log_max_level_error
-
Enables max_level_error of log
- log_max_level_warn
-
Enables max_level_warn of log
- log_max_level_info
-
Enables max_level_info of log
- log_max_level_debug
-
Enables max_level_debug of log
- log_max_level_trace
-
Enables max_level_trace of log
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- rustc-hash insecure_hash?
-
Enables rustc-hash ^1
performance
- parking_lot implicit feature
-
Enables parking_lot ^0.11
parking_lot:
More compact and efficient implementations of the standard synchronization primitives