2022-12-06 17:01:21 +11:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2022-12-06 17:38:21 +11:00
|
|
|
#![feature(let_chains)]
|
2022-12-06 13:01:15 +11:00
|
|
|
|
2022-12-06 17:01:21 +11:00
|
|
|
mod hello_triangle;
|
|
|
|
mod filter_chain;
|
|
|
|
mod filter_pass;
|
|
|
|
mod error;
|
2022-12-07 18:05:10 +11:00
|
|
|
mod util;
|
|
|
|
mod framebuffer;
|
2022-12-10 17:25:36 +11:00
|
|
|
mod vulkan_state;
|
2022-12-06 13:01:15 +11:00
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
2022-12-10 17:25:36 +11:00
|
|
|
use crate::filter_chain::FilterChainVulkan;
|
2022-12-06 13:01:15 +11:00
|
|
|
use super::*;
|
|
|
|
#[test]
|
|
|
|
fn triangle_vk() {
|
2022-12-10 17:25:36 +11:00
|
|
|
let base = hello_triangle::ExampleBase::new(900, 600);
|
|
|
|
let mut filter = FilterChainVulkan::load_from_path(
|
|
|
|
base.device.clone(),
|
|
|
|
"../test/slang-shaders/border/gameboy-player/gameboy-player-crt-royale.slangp",
|
|
|
|
None
|
|
|
|
)
|
|
|
|
// FilterChain::load_from_path("../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp", None)
|
|
|
|
.unwrap();
|
|
|
|
hello_triangle::main(base);
|
2022-12-06 13:01:15 +11:00
|
|
|
}
|
|
|
|
}
|