diff --git a/.gitignore b/.gitignore index a821aa9921..173b951426 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ - /target **/*.rs.bk Cargo.lock +.vscode diff --git a/Cargo.toml b/Cargo.toml index 9542882427..8038a668ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,8 +4,9 @@ version = "0.1.0" authors = ["Dzmitry Malyshau "] [features] -default = ["gfx-backend-vulkan"] [dependencies] gfx-hal = { git = "https://github.com/gfx-rs/gfx" } gfx-backend-vulkan = { git = "https://github.com/gfx-rs/gfx", optional = true } +gfx-backend-dx12 = { git = "https://github.com/gfx-rs/gfx", optional = true } +gfx-backend-metal = { git = "https://github.com/gfx-rs/gfx", optional = true } diff --git a/src/instance.rs b/src/instance.rs index a9266011b2..055c0cd865 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -14,7 +14,7 @@ pub struct AdapterDescriptor { #[repr(C)] pub struct Extensions { - anisotropicFiltering: bool, + anisotropic_filtering: bool, } #[repr(C)] diff --git a/src/lib.rs b/src/lib.rs index af237c19b6..ad15c58203 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,10 @@ extern crate gfx_hal as hal; #[cfg(feature = "gfx-backend-vulkan")] extern crate gfx_backend_vulkan as back; +#[cfg(feature = "gfx-backend-dx12")] +extern crate gfx_backend_dx12 as back; +#[cfg(feature = "gfx-backend-metal")] +extern crate gfx_backend_metal as back; mod command; mod device;