2023-01-13 19:19:58 +11:00
|
|
|
//! Vulkan shader runtime options.
|
|
|
|
|
2024-02-12 17:56:39 +11:00
|
|
|
use librashader_runtime::impl_default_frame_options;
|
|
|
|
impl_default_frame_options!(FrameOptionsVulkan);
|
2023-01-13 18:10:07 +11:00
|
|
|
|
|
|
|
/// Options for filter chain creation.
|
|
|
|
#[repr(C)]
|
2023-02-10 15:36:09 +11:00
|
|
|
#[derive(Default, Debug, Clone)]
|
2023-01-14 08:55:50 +11:00
|
|
|
pub struct FilterChainOptionsVulkan {
|
2023-01-13 20:13:16 +11:00
|
|
|
/// The number of frames in flight to keep. If zero, defaults to three.
|
|
|
|
pub frames_in_flight: u32,
|
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,
|
2024-02-13 15:28:01 +11:00
|
|
|
/// Use dynamic rendering instead of explicit render pass objects.
|
|
|
|
/// It is recommended if possible to use dynamic rendering,
|
2023-01-26 15:45:10 +11:00
|
|
|
/// because render-pass mode will create new framebuffers per pass.
|
2024-02-13 15:28:01 +11:00
|
|
|
pub use_dynamic_rendering: 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-01-13 18:10:07 +11:00
|
|
|
}
|