[][src]Struct gfx_hal::pso::Rasterizer

pub struct Rasterizer {
    pub polygon_mode: PolygonMode,
    pub cull_face: Face,
    pub front_face: FrontFace,
    pub depth_clamping: bool,
    pub depth_bias: Option<State<DepthBias>>,
    pub conservative: bool,
}

Rasterization state.

Fields

polygon_mode: PolygonMode

How to rasterize this primitive.

cull_face: Face

Which face should be culled.

front_face: FrontFace

Which vertex winding is considered to be the front face for culling.

depth_clamping: bool

Whether or not to enable depth clamping; when enabled, instead of fragments being omitted when they are outside the bounds of the z-plane, they will be clamped to the min or max z value.

depth_bias: Option<State<DepthBias>>

What depth bias, if any, to use for the drawn primitives.

conservative: bool

Controls how triangles will be rasterized depending on their overlap with pixels.

Methods

impl Rasterizer[src]

pub const FILL: Self[src]

Simple polygon-filling rasterizer state

Trait Implementations

impl Clone for Rasterizer[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Rasterizer[src]

impl PartialEq<Rasterizer> for Rasterizer[src]

impl Debug for Rasterizer[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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