librashader_runtime_wgpu/options.rs
1//! wgpu shader runtime options.
2
3use librashader_runtime::impl_default_frame_options;
4impl_default_frame_options!(FrameOptionsWgpu);
5
6/// Options for filter chain creation.
7#[repr(C)]
8#[derive(Default, Debug, Clone)]
9pub struct FilterChainOptionsWgpu {
10 /// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
11 pub force_no_mipmaps: bool,
12 /// Enable the shader object cache. Shaders will be loaded from the cache
13 /// if this is enabled.
14 pub enable_cache: bool,
15 /// WGPU adapter info for use to determine the name of the pipeline cache index.
16 /// If this is not provided, then it will fallback to a default "wgpu" index, which
17 /// may clobber the cache for a different device using WGPU.
18 pub adapter_info: Option<wgpu::AdapterInfo>,
19}