gltf_json/extensions/
mod.rs

1/// Contains `Accessor` and other related data structures.
2pub mod accessor;
3
4/// Contains `Animation` and other related data structures.
5pub mod animation;
6
7/// Contains `Asset` metadata.
8pub mod asset;
9
10/// Contains `Buffer`, `View`, and other related data structures.
11pub mod buffer;
12
13/// Contains `Camera` and other related data structures.
14pub mod camera;
15
16/// Contains `Image` and other related data structures.
17pub mod image;
18
19/// Contains `Material` and other related data structures.
20pub mod material;
21
22/// Contains `Mesh` and other related data structures.
23pub mod mesh;
24
25/// Contains `Root`.
26pub mod root;
27
28/// Contains `Scene`, `Node`, and other related data structures.
29pub mod scene;
30
31/// Contains `Skin` and other related data structures.
32pub mod skin;
33
34/// Contains `Texture`, `Sampler`, and other related data structures.
35pub mod texture;
36
37pub use self::root::Root;
38
39/// Names of glTF 2.0 extensions enabled by the user.
40pub const ENABLED_EXTENSIONS: &[&str] = &[
41    #[cfg(feature = "KHR_lights_punctual")]
42    "KHR_lights_punctual",
43    #[cfg(feature = "KHR_materials_pbrSpecularGlossiness")]
44    "KHR_materials_pbrSpecularGlossiness",
45    #[cfg(feature = "KHR_materials_unlit")]
46    "KHR_materials_unlit",
47    #[cfg(feature = "KHR_texture_transform")]
48    "KHR_texture_transform",
49    #[cfg(feature = "KHR_materials_transmission")]
50    "KHR_materials_transmission",
51    #[cfg(feature = "KHR_materials_ior")]
52    "KHR_materials_ior",
53    #[cfg(feature = "KHR_materials_emissive_strength")]
54    "KHR_materials_emissive_strength",
55    // Allowlisted texture extensions. Processing is delegated to the user.
56    #[cfg(feature = "allow_empty_texture")]
57    "KHR_texture_basisu",
58    #[cfg(feature = "allow_empty_texture")]
59    "EXT_texture_webp",
60    #[cfg(feature = "allow_empty_texture")]
61    "MSFT_texture_dds",
62];
63
64/// Names of glTF 2.0 extensions supported by the library.
65pub const SUPPORTED_EXTENSIONS: &[&str] = &[
66    "KHR_lights_punctual",
67    "KHR_materials_pbrSpecularGlossiness",
68    "KHR_materials_unlit",
69    "KHR_texture_transform",
70    "KHR_materials_transmission",
71    "KHR_materials_ior",
72    "KHR_materials_emissive_strength",
73];