Struct luminance::pipeline::PipelineState [−][src]
#[non_exhaustive]pub struct PipelineState { pub clear_color: [f32; 4], pub clear_color_enabled: bool, pub clear_depth_enabled: bool, pub viewport: Viewport, pub srgb_enabled: bool, pub clear_scissor: Option<ScissorRegion>, }
Expand description
Various customization options for pipelines.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.clear_color: [f32; 4]
Color to use when clearing buffers.
clear_color_enabled: bool
Whether clearing color buffers.
clear_depth_enabled: bool
Whether clearing depth buffers.
viewport: Viewport
Viewport to use when rendering.
srgb_enabled: bool
Whether sRGB should be enabled.
clear_scissor: Option<ScissorRegion>
Whether to use scissor test when clearing buffers.
Implementations
Create a default PipelineState
.
See the documentation of the Default
for further details.
Get the clear color.
Set the clear color.
Check whether the pipeline’s framebuffer’s color buffers will be cleared.
Enable clearing color buffers.
Check whether the pipeline’s framebuffer’s depth buffer will be cleared.
Enable clearing depth buffers.
Set the viewport.
Check whether sRGB linearization is enabled.
Enable sRGB linearization.
Get the scissor configuration, if any.
Set the scissor configuration.
Trait Implementations
Default PipelineState
:
- Clear color is
[0, 0, 0, 1]
. - Color is always cleared.
- Depth is always cleared.
- The viewport uses the whole framebuffer’s.
- sRGB encoding is disabled.
- No scissor test is performed.
Auto Trait Implementations
impl RefUnwindSafe for PipelineState
impl Send for PipelineState
impl Sync for PipelineState
impl Unpin for PipelineState
impl UnwindSafe for PipelineState
Blanket Implementations
Mutably borrows from an owned value. Read more