Cargo Features
[dependencies]
amethyst_renderer = { version = "0.10.4", default-features = false, features = ["opengl", "profiler", "nightly", "gfx_device_dx11", "gfx_device_metal", "gfx_device_vulkan", "gfx_window_dxgi", "gfx_window_metal", "gfx_window_vulkan"] }
- default = opengl
-
The
opengl
feature is set by default wheneveramethyst_renderer
is added without
somewhere in the dependency tree.default-features = false - opengl default = gfx_device_gl, gfx_window_glutin, glutin
- profiler
-
Enables thread_profiler of thread_profiler
thread_profiler:
Required for testing using the profile_scope!() macro
- nightly
-
Enables nightly of amethyst_core ^0.5.0
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.
- thread_profiler profiler?
- gfx_device_gl opengl
-
Enables gfx_device_gl ^0.15
- gfx_window_glutin opengl
-
Enables gfx_window_glutin ^0.27.0
- glutin opengl
-
Enables glutin ^0.19
- gfx_device_dx11 win implicit feature
-
Enables gfx_device_dx11 ^0.7
gfx_device_dx11:
DirectX-11 backend for gfx-rs
- gfx_device_metal mac implicit feature
-
Enables gfx_device_metal
gfx_device_metal:
Metal backend for gfx-rs
- gfx_device_vulkan not mac implicit feature
-
Enables gfx_device_vulkan
gfx_device_vulkan:
Vulkan API backend for gfx-rs
- gfx_window_dxgi win implicit feature
-
Enables gfx_window_dxgi ^0.17
gfx_window_dxgi:
DXGI window for gfx-rs
- gfx_window_metal mac implicit feature
-
Enables gfx_window_metal
gfx_window_metal:
Metal window for gfx-rs
- gfx_window_vulkan not mac implicit feature
-
Enables gfx_window_vulkan
gfx_window_vulkan:
Vulkan window for gfx-rs