librashader_runtime_gl/
options.rs

1//! OpenGL shader runtime options.
2
3use librashader_runtime::impl_default_frame_options;
4impl_default_frame_options!(FrameOptionsGL);
5
6/// Options for filter chain creation.
7#[repr(C)]
8#[derive(Default, Debug, Clone)]
9pub struct FilterChainOptionsGL {
10    /// The GLSL version. Should be at least `330`.
11    pub glsl_version: u16,
12    /// Whether or not to use the Direct State Access APIs. Only available on OpenGL 4.5+.
13    /// If this is off, compiled program caching will not be available.
14    pub use_dsa: bool,
15    /// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
16    pub force_no_mipmaps: bool,
17    /// Disable the shader object cache. Shaders will be recompiled rather than loaded from the cache.
18    pub disable_cache: bool,
19}