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

22 lines
705 B
Rust
Raw Normal View History

//! Direct3D 12 shader runtime options.
2023-02-06 09:30:55 +11:00
use librashader_runtime::impl_default_frame_options;
impl_default_frame_options!(FrameOptionsD3D12);
2023-02-06 09:30:55 +11:00
/// 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
}