Struct sierra::Rasterizer [−][src]
pub struct Rasterizer {
pub viewport: State<Viewport>,
pub scissor: State<Rect2d>,
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<Rect2d>
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
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl !UnwindSafe for Rasterizer
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more