lactea_host/lib.rs
1//! Host-side helpers shared by the lactea binaries, the C API and Rust hosts embedding the engine.
2//! The engine crates never touch the filesystem or open a GPU; the hosts do, and they all need the
3//! same pieces: a directory-backed [`lactea::TextureProvider`], image decoding, headless GPU setup,
4//! frame read-back ([`readback`]), running on the host's own Vulkan or Metal device (`vulkan`,
5//! `metal`) and a WAV reader.
6
7pub mod gpu;
8#[cfg(target_vendor = "apple")]
9pub mod metal;
10pub mod presets;
11pub mod readback;
12pub mod textures;
13#[cfg(any(windows, all(unix, not(target_vendor = "apple"))))]
14pub mod vulkan;
15pub mod wav;
16
17pub use presets::{PlaylistFs, is_preset_file, scan_preset_files, scan_presets};
18pub use readback::FrameReader;
19pub use textures::{DirTextures, TEXTURE_EXTENSIONS, decode_file, decode_image, decode_media};