2023-02-10 15:36:09 +11:00
|
|
|
//! Direct3D 12 shader runtime options.
|
2023-02-06 09:30:55 +11:00
|
|
|
|
2024-02-12 17:56:39 +11:00
|
|
|
use librashader_runtime::impl_default_frame_options;
|
|
|
|
impl_default_frame_options!(FrameOptionsD3D12);
|
2023-02-06 09:30:55 +11:00
|
|
|
|
2023-02-10 15:36:09 +11:00
|
|
|
/// Options for Direct3D 12 filter chain creation.
|
2023-02-06 09:30:55 +11:00
|
|
|
#[repr(C)]
|
2023-02-10 15:36:09 +11:00
|
|
|
#[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,
|
2023-02-15 19:06:34 +11:00
|
|
|
|
|
|
|
/// 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
|
|
|
}
|