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

21 lines
554 B
Rust
Raw Normal View History

2023-01-13 19:19:58 +11:00
//! Vulkan shader runtime options.
2023-01-13 18:10:07 +11:00
/// Options for each Vulkan shader frame.
#[repr(C)]
#[derive(Debug, Clone)]
2023-01-13 18:32:21 +11:00
pub struct FrameOptions {
2023-01-13 18:10:07 +11:00
/// Whether or not to clear the history buffers.
pub clear_history: bool,
/// The direction of the frame. 1 should be vertical.
pub frame_direction: i32,
}
/// Options for filter chain creation.
#[repr(C)]
#[derive(Debug, Clone)]
2023-01-13 18:32:21 +11:00
pub struct FilterChainOptions {
2023-01-13 18:10:07 +11:00
/// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
pub force_no_mipmaps: bool,
}
2023-01-13 17:48:04 +11:00