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

49 lines
1.2 KiB
Rust
Raw Normal View History

2023-02-06 02:17:30 -05:00
#![cfg(target_os = "windows")]
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-02-09 19:44:01 -05:00
#![feature(int_roundings)]
2023-02-07 23:08:44 -05:00
2023-02-05 16:17:23 -05:00
mod buffer;
mod descriptor_heap;
2023-02-06 01:25:06 -05:00
pub mod error;
2023-01-25 19:08:25 -05:00
mod filter_chain;
2023-02-05 16:17:23 -05:00
mod filter_pass;
mod framebuffer;
mod graphics_pipeline;
2023-01-25 19:08:25 -05:00
mod hello_triangle;
2023-01-30 23:30:11 -05:00
mod luts;
2023-01-25 19:08:25 -05:00
mod mipmap;
2023-02-06 01:25:06 -05:00
pub mod options;
2023-02-06 01:05:19 -05:00
mod parameters;
2023-01-30 02:02:10 -05:00
mod quad_render;
2023-02-05 16:17:23 -05:00
mod samplers;
mod texture;
mod util;
2023-01-25 19:08:25 -05:00
2023-02-06 01:25:06 -05:00
pub use filter_chain::FilterChainD3D12;
2023-02-06 01:05:19 -05:00
pub use texture::D3D12InputImage;
pub use texture::D3D12OutputView;
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-09 19:44:01 -05:00
// "../test/basic.slangp",
"../test/slang-shaders/bezel/Mega_Bezel/Presets/MBZ__0__SMOOTH-ADV-GLASS.slangp",
2023-02-06 21:56:24 -05:00
// "../test/slang-shaders/crt/crt-royale.slangp",
2023-02-05 19:58:51 -05:00
// "../test/slang-shaders/vhs/VHSPro.slangp",
2023-01-25 19:08:25 -05:00
&SampleCommandLine {
use_warp_device: false,
},
)
.unwrap();
hello_triangle::main(sample).unwrap()
}
}