2024-02-07 10:42:32 +11:00
|
|
|
//! wgpu shader runtime options.
|
|
|
|
|
|
|
|
/// Options for each wgpu shader frame.
|
2024-02-02 10:03:21 +11:00
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Default, Debug, Clone)]
|
2024-02-07 10:42:32 +11:00
|
|
|
pub struct FrameOptionsWgpu {
|
2024-02-02 10:03:21 +11:00
|
|
|
/// Whether or not to clear the history buffers.
|
|
|
|
pub clear_history: bool,
|
|
|
|
/// The direction of rendering.
|
|
|
|
/// -1 indicates that the frames are played in reverse order.
|
|
|
|
pub frame_direction: i32,
|
2024-02-06 16:29:45 +11:00
|
|
|
}
|
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,
|
|
|
|
}
|