2023-01-25 19:08:25 -05:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
#![feature(let_chains)]
|
2023-01-30 02:02:10 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2023-01-25 19:08:25 -05:00
|
|
|
mod error;
|
|
|
|
mod filter_chain;
|
2023-02-01 18:09:34 -05:00
|
|
|
mod descriptor_heap;
|
2023-01-25 19:08:25 -05:00
|
|
|
mod hello_triangle;
|
|
|
|
mod samplers;
|
2023-01-30 23:30:11 -05:00
|
|
|
mod luts;
|
2023-01-25 19:08:25 -05:00
|
|
|
mod util;
|
|
|
|
mod mipmap;
|
2023-01-30 02:02:10 -05:00
|
|
|
mod filter_pass;
|
|
|
|
mod quad_render;
|
|
|
|
mod graphics_pipeline;
|
2023-01-30 23:30:11 -05:00
|
|
|
mod buffer;
|
2023-01-31 01:25:45 -05:00
|
|
|
mod framebuffer;
|
2023-01-31 17:50:47 -05:00
|
|
|
mod texture;
|
2023-02-01 00:16:06 -05:00
|
|
|
mod render_target;
|
2023-01-25 19:08:25 -05: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 02:22:13 -05:00
|
|
|
// "../test/slang-shaders/crt/crt-lottes.slangp",
|
2023-02-05 01:54:56 -05:00
|
|
|
"../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp",
|
2023-01-25 19:08:25 -05:00
|
|
|
&SampleCommandLine {
|
|
|
|
use_warp_device: false,
|
|
|
|
},
|
|
|
|
)
|
|
|
|
.unwrap();
|
|
|
|
hello_triangle::main(sample).unwrap()
|
|
|
|
}
|
|
|
|
}
|