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