librashader/librashader-runtime-d3d9/tests/triangle.rs
chyyran d33c2a84b2 test(d3d9): Add Direct3D 9 render test
Something seems to be broken though, it's not rendering the correct channel
2024-09-25 22:00:10 -04:00

29 lines
875 B
Rust

mod hello_triangle;
const FILTER_PATH: &str = "../test/shaders_slang/crt/crt-geom.slangp";
#[test]
fn triangle_d3d9() {
let sample = hello_triangle::d3d9_hello_triangle::Sample::new(
FILTER_PATH,
// Some(&FilterChainOptionsD3D9 {
// force_no_mipmaps: false,
// disable_cache: false,
// }),
// replace below with 'None' for the triangle
// None,
)
.unwrap();
// let sample = hello_triangle_old::d3d11_hello_triangle::Sample::new(
// "../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV.slangp",
// Some(&FilterChainOptions {
// use_deferred_context: true,
// })
// )
// .unwrap();
// let sample = hello_triangle_old::d3d11_hello_triangle::Sample::new("../test/basic.slangp").unwrap();
hello_triangle::main(sample).unwrap();
}