1#![warn(
4 missing_debug_implementations,
5 missing_copy_implementations,
6 missing_docs,
7 trivial_casts,
8 trivial_numeric_casts,
9 unused_extern_crates,
10 unused_import_braces,
11 unused_qualifications
12)]
13
14pub use crate::{backend::*, casts::*, slow::*, wrap::*};
15
16#[doc(inline)]
17pub use gfx_hal as hal;
18
19#[cfg(all(
20 feature = "dx12",
21 all(target_os = "windows", not(target_arch = "wasm32"))
22))]
23#[doc(inline)]
24pub use gfx_backend_dx12 as dx12;
25
26#[cfg(feature = "gl")]
27#[doc(inline)]
28pub use gfx_backend_gl as gl;
29
30#[cfg(feature = "gfx-backend-empty")]
31#[doc(inline)]
32pub use gfx_backend_empty as empty;
33
34#[cfg(all(
35 feature = "metal",
36 any(
37 all(not(target_arch = "wasm32"), target_os = "macos"),
38 all(target_arch = "aarch64", target_os = "ios")
39 )
40))]
41#[doc(inline)]
42pub use gfx_backend_metal as metal;
43
44#[cfg(all(
45 feature = "vulkan",
46 all(
47 any(
48 target_os = "windows",
49 all(unix, not(any(target_os = "macos", target_os = "ios")))
50 ),
51 not(target_arch = "wasm32")
52 )
53))]
54#[doc(inline)]
55pub use gfx_backend_vulkan as vulkan;
56
57#[doc(inline)]
58pub use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
59
60#[macro_use]
61mod backend;
62
63#[macro_use]
64mod features;
65mod casts;
66mod slow;
67pub mod types;
68mod wrap;