Struct sierra::Rasterizer
source · pub struct Rasterizer {
pub viewport: State<Viewport>,
pub scissor: State<Rect>,
pub depth_clamp: bool,
pub front_face: FrontFace,
pub culling: Option<Culling>,
pub polygon_mode: PolygonMode,
pub depth_test: Option<DepthTest>,
pub stencil_tests: Option<StencilTests>,
pub depth_bounds: Option<State<Bounds>>,
pub fragment_shader: Option<FragmentShader>,
pub color_blend: ColorBlend,
}
Fields§
§viewport: State<Viewport>
Rendering viewport transformation. Determines how vertex coordinates are transformed to framebuffer coordinates.
scissor: State<Rect>
Scissors for the viewport. Determines bounds for scissor test. If the test fails for generated fragment that fragment is discared.
depth_clamp: bool
Should fragments out of bounds on Z axis are clamped or discared.
If true
- fragments are clamped. This also disables primitive
clipping. Otherwise they are clipped.
If DepthClamp
feature is not enabled this value must be false
.
front_face: FrontFace
How polygon front face is determined.
culling: Option<Culling>
How polygons are culled before rasterization.
polygon_mode: PolygonMode
How polygons are rasterized.
See PolygonMode
for description.
If fillModeNonSolid
is not enabled this value must be
PolygonMode::Fill
.
depth_test: Option<DepthTest>
Depth test and operations.
stencil_tests: Option<StencilTests>
Stencil test and operations.
depth_bounds: Option<State<Bounds>>
Depth-bounds test.
fragment_shader: Option<FragmentShader>
Fragment shader used by the pipeline.
color_blend: ColorBlend
Attachment color blending.
Implementations§
source§impl Rasterizer
impl Rasterizer
Trait Implementations§
source§impl Clone for Rasterizer
impl Clone for Rasterizer
source§fn clone(&self) -> Rasterizer
fn clone(&self) -> Rasterizer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Rasterizer
impl Debug for Rasterizer
source§impl Default for Rasterizer
impl Default for Rasterizer
source§impl Hash for Rasterizer
impl Hash for Rasterizer
source§impl PartialEq<Rasterizer> for Rasterizer
impl PartialEq<Rasterizer> for Rasterizer
source§fn eq(&self, other: &Rasterizer) -> bool
fn eq(&self, other: &Rasterizer) -> bool
self
and other
values to be equal, and is used
by ==
.