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

20 lines
810 B
Rust
Raw Normal View History

2024-02-07 10:42:32 +11:00
//! wgpu shader runtime options.
use librashader_runtime::impl_default_frame_options;
impl_default_frame_options!(FrameOptionsWgpu);
2024-02-06 17:58:39 +11:00
/// Options for filter chain creation.
#[repr(C)]
#[derive(Default, Debug, Clone)]
2024-02-07 10:42:32 +11:00
pub struct FilterChainOptionsWgpu {
2024-02-06 17:58:39 +11:00
/// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
pub force_no_mipmaps: bool,
2024-08-01 16:06:28 +10:00
/// Enable the shader object cache. Shaders will be loaded from the cache
/// if this is enabled.
pub enable_cache: bool,
/// WGPU adapter info for use to determine the name of the pipeline cache index.
/// If this is not provided, then it will fallback to a default "wgpu" index, which
/// may clobber the cache for a different device using WGPU.
pub adapter_info: Option<wgpu::AdapterInfo>,
2024-02-06 17:58:39 +11:00
}