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

25 lines
795 B
Rust
Raw Permalink Normal View History

//! Direct3D 11 shader runtime options.
2023-01-13 03:19:58 -05:00
/// Options for each Direct3D 11 shader frame.
2022-11-30 19:05:12 -05:00
#[repr(C)]
#[derive(Default, Debug, Clone)]
pub struct FrameOptionsD3D11 {
2022-12-04 22:48:57 -05:00
/// Whether or not to clear the history buffers.
2022-11-30 19:05:12 -05:00
pub clear_history: bool,
2023-02-06 00:26:27 -05:00
/// The direction of rendering.
/// -1 indicates that the frames are played in reverse order.
2022-12-04 22:36:14 -05:00
pub frame_direction: i32,
2022-11-30 19:05:12 -05:00
}
/// Options for Direct3D 11 filter chain creation.
2022-11-30 19:05:12 -05:00
#[repr(C)]
#[derive(Default, Debug, Clone)]
pub struct FilterChainOptionsD3D11 {
/// Whether or not to explicitly disable mipmap
/// generation regardless of shader preset settings.
pub force_no_mipmaps: bool,
/// Disable the shader object cache. Shaders will be
/// recompiled rather than loaded from the cache.
pub disable_cache: bool,
2022-11-30 19:05:12 -05:00
}