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

30 lines
941 B
Rust
Raw Normal View History

//! Direct3D 12 shader runtime options.
2023-02-06 09:30:55 +11:00
/// Options for each Direct3D12 shader frame.
2023-02-06 09:30:55 +11:00
#[repr(C)]
#[derive(Default, Debug, Clone)]
2023-02-06 09:30:55 +11:00
pub struct FrameOptionsD3D12 {
/// Whether or not to clear the history buffers.
pub clear_history: bool,
2023-02-06 16:26:27 +11:00
/// The direction of rendering.
/// -1 indicates that the frames are played in reverse order.
2023-02-06 09:30:55 +11:00
pub frame_direction: i32,
}
/// Options for Direct3D 12 filter chain creation.
2023-02-06 09:30:55 +11:00
#[repr(C)]
#[derive(Default, Debug, Clone)]
2023-02-06 09:30:55 +11:00
pub struct FilterChainOptionsD3D12 {
2023-02-06 16:26:27 +11:00
/// Force the HLSL shader pipeline. This may reduce shader compatibility.
2023-02-06 09:30:55 +11:00
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.
2023-02-06 09:30:55 +11:00
pub force_no_mipmaps: bool,
/// Disable the shader object cache. Shaders will be
/// recompiled rather than loaded from the cache.
pub disable_cache: bool,
2023-02-06 09:30:55 +11:00
}