diff --git a/crates/bevy_openxr/src/openxr/graphics.rs b/crates/bevy_openxr/src/openxr/graphics.rs index 217bc37..aa93290 100644 --- a/crates/bevy_openxr/src/openxr/graphics.rs +++ b/crates/bevy_openxr/src/openxr/graphics.rs @@ -64,7 +64,12 @@ impl GraphicsType for () { pub type GraphicsBackend = GraphicsWrap<()>; impl GraphicsBackend { - const ALL: &'static [Self] = &[Self::Vulkan(())]; + const ALL: &'static [Self] = &[ + #[cfg(feature = "vulkan")] + Self::Vulkan(()), + #[cfg(all(feature = "d3d12", windows))] + Self::D3D12(()), + ]; pub fn available_backends(exts: &OxrExtensions) -> Vec { Self::ALL