Cargo Features
Rafx has no features set by default.
[dependencies]
rafx = { version = "0.0.16", features = ["rafx-empty", "rafx-dx12", "rafx-vulkan", "rafx-metal", "rafx-gles2", "rafx-gles3", "static-vulkan", "framework", "assets", "renderer", "basis-universal", "dds"] }
- rafx-empty
-
Backends
TODO: There is currently no way to enable backend-specific feature flags in rafx-renderer without enabling rafx-renderer. When weak-dep-features https://github.com/rust-lang/cargo/issues/8832 is stabilized we can fix this. For now, the workaround for users not wanting to include higher-level crates is to use the crates pulled in by the top level crate directly.
Enables rafx-empty of rafx-api and rafx-renderer
- rafx-dx12
-
Enables rafx-dx12 of rafx-api and rafx-renderer
- rafx-vulkan
-
Enables rafx-vulkan of rafx-api and rafx-renderer
- rafx-metal
-
Enables rafx-metal of rafx-api and rafx-renderer
- rafx-gles2
-
Enables rafx-gles2 of rafx-api and rafx-renderer
- rafx-gles3
-
Enables rafx-gles3 of rafx-api and rafx-renderer
- static-vulkan
-
Vulkan-specific feature, use statically-linked vulkan instead of dynamically loading it
Enables static-vulkan of rafx-api
- framework assets? = rafx-framework
-
Affects
rafx::render_feature_extract_job_predule
,rafx::render_feature_prepare_job_predule
,rafx::render_feature_write_job_prelude
,rafx::render_feature_renderer_prelude
,rafx::render_feature_mod_prelude
… - assets renderer? = framework, rafx-assets
- renderer = assets, rafx-renderer
- basis-universal
-
Enables basis-universal of rafx-assets
- dds
-
Enables dds of rafx-assets
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.