librashader_capi/runtime/
mod.rs

1//! librashader runtime C APIs.
2#[cfg_attr(feature = "docsrs", doc(cfg(feature = "runtime-opengl")))]
3#[cfg(feature = "runtime-opengl")]
4pub mod gl;
5
6#[cfg_attr(feature = "docsrs", doc(cfg(feature = "runtime-vulkan")))]
7#[cfg(feature = "runtime-vulkan")]
8pub mod vk;
9
10#[cfg_attr(
11    feature = "docsrs",
12    doc(cfg(all(target_os = "windows", feature = "runtime-d3d11")))
13)]
14#[cfg(any(
15    feature = "__cbindgen_internal",
16    all(target_os = "windows", feature = "runtime-d3d11")
17))]
18pub mod d3d11;
19
20#[cfg_attr(
21    feature = "docsrs",
22    doc(cfg(all(target_os = "windows", feature = "runtime-d3d9")))
23)]
24#[cfg(any(
25    feature = "__cbindgen_internal",
26    all(target_os = "windows", feature = "runtime-d3d9")
27))]
28pub mod d3d9;
29
30#[cfg_attr(
31    feature = "docsrs",
32    doc(cfg(all(target_os = "windows", feature = "runtime-d3d12")))
33)]
34#[cfg(any(
35    feature = "__cbindgen_internal",
36    all(target_os = "windows", feature = "runtime-d3d12")
37))]
38pub mod d3d12;
39
40#[cfg_attr(
41    feature = "docsrs",
42    doc(cfg(all(target_vendor = "apple", feature = "runtime-metal")))
43)]
44#[cfg(any(
45    feature = "__cbindgen_internal",
46    all(
47        target_vendor = "apple",
48        feature = "runtime-metal",
49        feature = "__cbindgen_internal_objc"
50    )
51))]
52pub mod mtl;