2022-10-21 01:12:17 -04:00
|
|
|
mod error;
|
|
|
|
mod include;
|
2022-10-21 21:04:00 -04:00
|
|
|
mod pragma;
|
2022-10-21 01:12:17 -04:00
|
|
|
|
|
|
|
pub use error::*;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod test {
|
|
|
|
use crate::include::read_source;
|
|
|
|
#[test]
|
|
|
|
pub fn preprocess_file() {
|
2022-10-21 21:04:00 -04:00
|
|
|
let result =
|
|
|
|
read_source("../test/slang-shaders/blurs/shaders/royale/blur3x3-last-pass.slang")
|
|
|
|
.unwrap();
|
2022-10-21 01:12:17 -04:00
|
|
|
eprintln!("{result}")
|
|
|
|
}
|
2022-10-21 21:04:00 -04:00
|
|
|
}
|