2023-01-19 11:39:36 +11:00
|
|
|
//! Shader preset definition parsing for librashader.
|
|
|
|
//!
|
|
|
|
//! This crate contains facilities and types for parsing `.slangp` shader presets files.
|
|
|
|
//!
|
|
|
|
//! Shader presets contain shader and texture parameters, and the order in which to apply a set of
|
|
|
|
//! shaders in a filter chain. A librashader runtime takes a resulting [`ShaderPreset`](crate::ShaderPreset)
|
|
|
|
//! as input to create a filter chain.
|
|
|
|
//!
|
|
|
|
//! Re-exported as [`librashader::presets`](https://docs.rs/librashader/latest/librashader/presets/index.html).
|
2024-02-03 18:16:38 +11:00
|
|
|
|
2024-02-09 13:33:17 +11:00
|
|
|
#![allow(stable_features)]
|
2024-02-03 18:16:38 +11:00
|
|
|
#![allow(unstable_name_collisions)]
|
2022-10-18 14:52:16 +11:00
|
|
|
|
2024-02-11 10:54:57 +11:00
|
|
|
pub mod context;
|
2022-10-20 13:47:43 +11:00
|
|
|
mod error;
|
2024-02-06 17:32:08 +11:00
|
|
|
mod extract_if;
|
2022-10-21 14:11:23 +11:00
|
|
|
mod parse;
|
2022-10-20 13:47:43 +11:00
|
|
|
mod preset;
|
2024-02-03 18:40:32 +11:00
|
|
|
|
2024-02-10 09:48:20 +11:00
|
|
|
pub use context::WildcardContext;
|
2022-10-23 15:59:18 +11:00
|
|
|
pub use error::*;
|
2022-10-18 16:07:38 +11:00
|
|
|
pub use preset::*;
|