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

28 lines
848 B
Rust
Raw Normal View History

2023-02-06 09:30:55 +11:00
//! Direct3D12 shader runtime options.
/// Options for each Direct3D11 shader frame.
#[repr(C)]
#[derive(Debug, Clone)]
pub struct FrameOptionsD3D12 {
/// Whether or not to clear the history buffers.
pub clear_history: bool,
/// The direction of the frame. 1 should be vertical.
pub frame_direction: i32,
}
/// Options for Direct3D11 filter chain creation.
#[repr(C)]
#[derive(Debug, Clone)]
pub struct FilterChainOptionsD3D12 {
/// Force the HLSL shader pipeline. This may reduce shader compatibility
pub force_hlsl_pipeline: bool,
/// Whether or not to explicitly disable mipmap
2023-02-06 10:25:59 +11:00
/// generation for intermediate passes regardless
/// of shader preset settings.
///
/// Mipmap generation Direct3D may be prohibitively expensive
/// on some hardware environments.
2023-02-06 09:30:55 +11:00
pub force_no_mipmaps: bool,
}