From ec50aa8ca9160ad307f3323a1a9f299d417420b8 Mon Sep 17 00:00:00 2001 From: awtterpip Date: Fri, 10 May 2024 18:32:46 -0500 Subject: [PATCH] update GraphicsBackend::ALL --- crates/bevy_openxr/src/openxr/graphics.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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