lambda_platform/gfx/
api.rs1cfg_if::cfg_if! {
5if #[cfg(any(feature = "gfx-with-gl", all(feature = "detect-platform", unix, not(target_os="macos")) ))] {
6 pub use gfx_backend_gl as RenderingAPI;
7} else if #[cfg(any(feature = "gfx-with-metal", all(feature = "detect-platform", target_os="macos")))] {
8 pub use gfx_backend_metal as RenderingAPI;
9} else if #[cfg(feature = "gfx-with-vulkan")] {
10 pub use gfx_backend_vulkan as RenderingAPI;
11} else if #[cfg(feature = "gfx-with-dx11")] {
12 pub use gfx_backend_dx11 as RenderingAPI;
13} else if #[cfg(any(feature = "gfx-with-dx12", all(windows, feature = "detect-platform")))] {
14 pub use gfx_backend_dx12 as RenderingAPI;
15} else {
16 pub use gfx_backend_empty as RenderingAPI;
17 }
18}