2023-01-13 03:19:58 -05:00
|
|
|
//! OpenGL shader runtime options.
|
|
|
|
|
2024-02-12 01:56:39 -05:00
|
|
|
use librashader_runtime::impl_default_frame_options;
|
|
|
|
impl_default_frame_options!(FrameOptionsGL);
|
2022-11-27 23:27:21 -05:00
|
|
|
|
2022-12-04 22:48:57 -05:00
|
|
|
/// Options for filter chain creation.
|
2022-11-27 23:27:21 -05:00
|
|
|
#[repr(C)]
|
2023-02-09 23:36:09 -05:00
|
|
|
#[derive(Default, Debug, Clone)]
|
2023-01-13 16:55:50 -05:00
|
|
|
pub struct FilterChainOptionsGL {
|
2022-12-04 22:48:57 -05:00
|
|
|
/// The GLSL version. Should be at least `330`.
|
2023-02-09 23:36:09 -05:00
|
|
|
pub glsl_version: u16,
|
2022-12-04 22:48:57 -05:00
|
|
|
/// Whether or not to use the Direct State Access APIs. Only available on OpenGL 4.5+.
|
2023-02-15 17:40:24 -05:00
|
|
|
/// If this is off, compiled program caching will not be available.
|
2022-11-30 19:05:24 -05:00
|
|
|
pub use_dsa: bool,
|
2023-01-11 18:25:31 -05:00
|
|
|
/// Whether or not to explicitly disable mipmap generation regardless of shader preset settings.
|
|
|
|
pub force_no_mipmaps: bool,
|
2023-02-15 17:40:24 -05:00
|
|
|
/// Disable the shader object cache. Shaders will be recompiled rather than loaded from the cache.
|
2023-02-15 03:06:34 -05:00
|
|
|
pub disable_cache: bool,
|
2022-11-27 23:27:21 -05:00
|
|
|
}
|