[][src]Struct nobs_vkpipes::pipeline::builder::graphics::Graphics

pub struct Graphics { /* fields omitted */ }

Builder for a graphics pipeline

Configures the pipeline's bindings, shader stages, and states.

For a successfull pipeline creation the builder needs to be constructed from a valid device and valid bindings and at least a vertex and fragment shader stage need to be configured.

Methods

impl Graphics[src]

pub fn from_pass(device: Device, pass: RenderPass) -> Graphics[src]

Create builder from a device

The builder is initialized with no bindings and no shader stages configured. The default states are initialized with the default constructor of their respective builder.

pub fn bindings(&mut self, bindings: &[Binding]) -> &mut Self[src]

Configures the bindings for the pieline.

From the configured bindings the builder is able to create the descriptor set layouts and pipeline layout.

pub fn vert(&mut self, vert: &PipelineShaderStageCreateInfo) -> &mut Self[src]

Configures the vertex shader stage for the pipeline.

pub fn tesc(&mut self, tesc: &PipelineShaderStageCreateInfo) -> &mut Self[src]

Configures the tesselation control shader stage for the pipeline.

pub fn tese(&mut self, tese: &PipelineShaderStageCreateInfo) -> &mut Self[src]

Configures the tesselation evaluation shader stage for the pipeline.

pub fn geom(&mut self, geom: &PipelineShaderStageCreateInfo) -> &mut Self[src]

Configures the geometry shader stage for the pipeline.

pub fn frag(&mut self, frag: &PipelineShaderStageCreateInfo) -> &mut Self[src]

Configures the fragment shader stage for the pipeline.

pub fn vertex_input(&mut self, b: Builder) -> &mut Self[src]

Configures the vertex input state for the pipeline.

pub fn input_assembly(&mut self, b: Builder) -> &mut Self[src]

Configures the input assembly state for the pipeline.

pub fn tesselation(&mut self, b: Builder) -> &mut Self[src]

Configures the tesselation state for the pipeline.

pub fn viewport(&mut self, b: Builder) -> &mut Self[src]

Configures the viewport for the pipeline.

pub fn raster(&mut self, b: Builder) -> &mut Self[src]

Configures the raster state for the pipeline.

pub fn depth_stencil(&mut self, b: Builder) -> &mut Self[src]

Configures the depth and stencil state for the pipeline.

pub fn multisample(&mut self, b: Builder) -> &mut Self[src]

Configures the multisample state for the pipeline.

pub fn blend(&mut self, b: Builder) -> &mut Self[src]

Configures the blend state for the pipeline.

pub fn dynamic(&mut self, b: Builder) -> &mut Self[src]

Configures the dynamic state for the pipeline.

pub fn create(&self) -> Result<Pipeline, String>[src]

Create the pipeline from the current configuration

Auto Trait Implementations

impl !Send for Graphics

impl !Sync for Graphics

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.