librashader/librashader-runtime-d3d12/src/lib.rs

41 lines
937 B
Rust
Raw Normal View History

2023-01-26 11:08:25 +11:00
#![feature(const_trait_impl)]
#![feature(let_chains)]
2023-01-30 18:02:10 +11:00
#![feature(type_alias_impl_trait)]
2023-02-06 08:17:23 +11:00
mod buffer;
mod descriptor_heap;
2023-01-26 11:08:25 +11:00
mod error;
mod filter_chain;
2023-02-06 08:17:23 +11:00
mod filter_pass;
mod framebuffer;
mod graphics_pipeline;
2023-01-26 11:08:25 +11:00
mod hello_triangle;
2023-01-31 15:30:11 +11:00
mod luts;
2023-01-26 11:08:25 +11:00
mod mipmap;
2023-01-30 18:02:10 +11:00
mod quad_render;
2023-02-01 16:16:06 +11:00
mod render_target;
2023-02-06 08:17:23 +11:00
mod samplers;
mod texture;
mod util;
2023-02-06 09:30:55 +11:00
mod options;
2023-01-26 11:08:25 +11:00
#[cfg(test)]
mod tests {
use super::*;
use crate::hello_triangle::{DXSample, SampleCommandLine};
#[test]
fn triangle_d3d12() {
let sample = hello_triangle::d3d12_hello_triangle::Sample::new(
2023-02-05 18:22:13 +11:00
// "../test/slang-shaders/crt/crt-lottes.slangp",
2023-02-06 09:30:55 +11:00
// "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp",
"../test/slang-shaders/crt/crt-royale.slangp",
2023-01-26 11:08:25 +11:00
&SampleCommandLine {
use_warp_device: false,
},
)
.unwrap();
hello_triangle::main(sample).unwrap()
}
}