[][src]Struct nobs_vulkanism_headless::pipes::pipeline::builder::graphics::raster::Builder

pub struct Builder {
    pub info: PipelineRasterizationStateCreateInfo,
}

Builder for a raster state

Default initialized with

  • depth clamp: dispabled
  • rasterizer discard: disabled
  • polygon mode: vk::POLYGON_MODE_FILL
  • line width: 1
  • cull mode: vk::CULL_MODE_BACK_BIT
  • front face: vk::FRONT_FACE_COUNTER_CLOCKWISE
  • depth bias: disabled
  • depth bias const factor: 0
  • depth bias clamp: 0
  • depth bias solpe factor: 0

Fields

info: PipelineRasterizationStateCreateInfo

Methods

impl Builder[src]

pub fn raw(info: PipelineRasterizationStateCreateInfo) -> Builder[src]

pub fn depth_clamp_enable(self, enable: u32) -> Builder[src]

pub fn discard_enable(self, enable: u32) -> Builder[src]

pub fn polygon_mode(self, mode: u32) -> Builder[src]

pub fn line_width(self, width: f32) -> Builder[src]

pub fn cull_mode(self, mode: u32) -> Builder[src]

pub fn front_face(self, front_face: u32) -> Builder[src]

pub fn depth_bias_enable(self, enable: u32) -> Builder[src]

pub fn depth_bias_constantfactor(self, f: f32) -> Builder[src]

pub fn depth_bias_clamp(self, c: f32) -> Builder[src]

pub fn depth_bias_slopefactor(self, f: f32) -> Builder[src]

Trait Implementations

impl Default for Builder[src]

Auto Trait Implementations

impl !Send for Builder

impl !Sync for Builder

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.