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

impl Rasterizer[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for Rasterizer[src]

impl Debug for Rasterizer[src]

impl Eq for Rasterizer[src]

impl Hash for Rasterizer[src]

impl PartialEq<Rasterizer> for Rasterizer[src]

impl StructuralEq for Rasterizer[src]

impl StructuralPartialEq for Rasterizer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.