[][src]Struct wgpu::RasterizationStateDescriptor

#[repr(C)]pub struct RasterizationStateDescriptor {
    pub front_face: FrontFace,
    pub cull_mode: CullMode,
    pub polygon_mode: PolygonMode,
    pub clamp_depth: bool,
    pub depth_bias: i32,
    pub depth_bias_slope_scale: f32,
    pub depth_bias_clamp: f32,
}

Describes the state of the rasterizer in a render pipeline.

Fields

front_face: FrontFacecull_mode: CullModepolygon_mode: PolygonMode

Controls the way each polygon is rasterized. Can be either Fill (default), Line or Point

Setting this to something other than Fill requires Features::NON_FILL_POLYGON_MODE to be enabled.

clamp_depth: bool

If enabled polygon depth is clamped to 0-1 range instead of being clipped.

Requires Features::DEPTH_CLAMPING enabled.

depth_bias: i32depth_bias_slope_scale: f32depth_bias_clamp: f32

Trait Implementations

impl Clone for RasterizationStateDescriptor[src]

impl Debug for RasterizationStateDescriptor[src]

impl Default for RasterizationStateDescriptor[src]

impl<'de> Deserialize<'de> for RasterizationStateDescriptor[src]

impl PartialEq<RasterizationStateDescriptor> for RasterizationStateDescriptor[src]

impl Serialize for RasterizationStateDescriptor[src]

impl StructuralPartialEq for RasterizationStateDescriptor[src]

Auto Trait Implementations

impl RefUnwindSafe for RasterizationStateDescriptor

impl Send for RasterizationStateDescriptor

impl Sync for RasterizationStateDescriptor

impl Unpin for RasterizationStateDescriptor

impl UnwindSafe for RasterizationStateDescriptor

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> 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.