2023-02-09 23:36:09 -05:00
|
|
|
//! Direct3D 12 shader runtime options.
|
2023-02-05 17:30:55 -05:00
|
|
|
|
2024-02-12 01:56:39 -05:00
|
|
|
use librashader_runtime::impl_default_frame_options;
|
|
|
|
impl_default_frame_options!(FrameOptionsD3D12);
|
2023-02-05 17:30:55 -05:00
|
|
|
|
2023-02-09 23:36:09 -05:00
|
|
|
/// Options for Direct3D 12 filter chain creation.
|
2023-02-05 17:30:55 -05:00
|
|
|
#[repr(C)]
|
2023-02-09 23:36:09 -05:00
|
|
|
#[derive(Default, Debug, Clone)]
|
2023-02-05 17:30:55 -05:00
|
|
|
pub struct FilterChainOptionsD3D12 {
|
2023-02-06 00:26:27 -05:00
|
|
|
/// Force the HLSL shader pipeline. This may reduce shader compatibility.
|
2023-02-05 17:30:55 -05:00
|
|
|
pub force_hlsl_pipeline: bool,
|
|
|
|
|
|
|
|
/// Whether or not to explicitly disable mipmap
|
2023-02-05 18:25:59 -05:00
|
|
|
/// generation for intermediate passes regardless
|
|
|
|
/// of shader preset settings.
|
2023-02-05 17:30:55 -05:00
|
|
|
pub force_no_mipmaps: bool,
|
2023-02-15 03:06:34 -05:00
|
|
|
|
|
|
|
/// Disable the shader object cache. Shaders will be
|
|
|
|
/// recompiled rather than loaded from the cache.
|
|
|
|
pub disable_cache: bool,
|
2023-02-05 17:30:55 -05:00
|
|
|
}
|