librashader_runtime_vk/
options.rs

1//! Vulkan shader runtime options.
2
3use librashader_runtime::impl_default_frame_options;
4impl_default_frame_options!(FrameOptionsVulkan);
5
6/// Options for filter chain creation.
7#[repr(C)]
8#[derive(Default, Debug, Clone)]
9pub struct FilterChainOptionsVulkan {
10    /// The number of frames in flight to keep. If zero, defaults to three.
11    pub frames_in_flight: u32,
12    /// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
13    pub force_no_mipmaps: bool,
14    /// Use dynamic rendering instead of explicit render pass objects.
15    /// It is recommended if possible to use dynamic rendering,
16    /// because render-pass mode will create new framebuffers per pass.
17    pub use_dynamic_rendering: bool,
18    /// Disable the shader object cache. Shaders will be
19    /// recompiled rather than loaded from the cache.
20    pub disable_cache: bool,
21}