2022-12-04 22:48:57 -05:00
|
|
|
/// Options for each OpenGL shader frame.
|
2022-11-27 23:27:21 -05:00
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Debug, Clone)]
|
2022-12-03 18:32:10 -05:00
|
|
|
pub struct FrameOptionsGL {
|
2022-12-04 22:48:57 -05:00
|
|
|
/// Whether or not to clear the history buffers.
|
2022-11-30 01:38:05 -05:00
|
|
|
pub clear_history: bool,
|
2022-12-04 22:48:57 -05:00
|
|
|
/// The direction of the frame. 1 should be vertical.
|
2022-12-04 22:36:14 -05:00
|
|
|
pub frame_direction: i32,
|
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)]
|
|
|
|
#[derive(Debug, Clone)]
|
2022-12-03 18:32:10 -05:00
|
|
|
pub struct FilterChainOptionsGL {
|
2022-12-04 22:48:57 -05:00
|
|
|
/// The GLSL version. Should be at least `330`.
|
2022-11-30 01:38:05 -05:00
|
|
|
pub gl_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+.
|
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,
|
2022-11-27 23:27:21 -05:00
|
|
|
}
|