update GraphicsBackend::ALL
This commit is contained in:
@@ -64,7 +64,12 @@ impl GraphicsType for () {
|
|||||||
pub type GraphicsBackend = GraphicsWrap<()>;
|
pub type GraphicsBackend = GraphicsWrap<()>;
|
||||||
|
|
||||||
impl GraphicsBackend {
|
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> {
|
pub fn available_backends(exts: &OxrExtensions) -> Vec<Self> {
|
||||||
Self::ALL
|
Self::ALL
|
||||||
|
|||||||
Reference in New Issue
Block a user