[][src]Struct bedrock::VertexProcessingStages

pub struct VertexProcessingStages<'d> { /* fields omitted */ }

PipelineStateDesc: Shader Stages and Input descriptions

Methods

impl<'d> VertexProcessingStages<'d>[src]

pub fn new(
    vsh: PipelineShader<'d>,
    vbind: &'d [VkVertexInputBindingDescription],
    vattr: &'d [VkVertexInputAttributeDescription],
    primitive_topo: VkPrimitiveTopology
) -> Self
[src]

pub fn vertex_shader(&mut self, vsh: PipelineShader<'d>) -> &mut Self[src]

Update the vertex shader

pub fn mod_vertex_shader(&mut self) -> &mut PipelineShader<'d>[src]

Get the vertex shader for modifying.

pub fn geometry_shader<S: Into<Option<PipelineShader<'d>>>>(
    &mut self,
    gsh: S
) -> &mut Self
[src]

Update the geometry shader, or disable geometry shader stage

pub fn mod_geometry_shader(&mut self) -> Option<&mut PipelineShader<'d>>[src]

Get the geometry shader for modifying.

pub fn fragment_shader<S: Into<Option<PipelineShader<'d>>>>(
    &mut self,
    fsh: S
) -> &mut Self
[src]

Update the fragment shader, or disable fragment shader stage

pub fn mod_fragment_shader(&mut self) -> Option<&mut PipelineShader<'d>>[src]

Get the fragment shader for modifying.

pub fn vertex_binding(
    &mut self,
    vbind: &'d [VkVertexInputBindingDescription]
) -> &mut Self
[src]

Update the vertex binding description

pub fn vertex_attributes(
    &mut self,
    vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
[src]

Update the vertex attribute description

pub fn vertex_input(
    &mut self,
    vbind: &'d [VkVertexInputBindingDescription],
    vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
[src]

Update the vertex input description

pub fn vertex_processing(
    &mut self,
    vsh: PipelineShader<'d>,
    vbind: &'d [VkVertexInputBindingDescription],
    vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
[src]

Update the vertex shader and the vertex input description

pub fn enable_primitive_restart(&mut self, w: bool) -> &mut Self[src]

Controls whether a special vertex index value is treated as restarting the assembly of primitives. This enable only applies to indexed draws, and the special index value is either

  • 0xffff_ffff when the indexType parameter of vkCmdBindIndexBuffer is equal to VK_INDEX_TYPE_UINT32, or
  • 0xffff when indexType is equal to VK_INDEX_TYPE_UINT16.

Primitive restart is not allowed for "list" topologies.

pub fn primitive_topology(&mut self, topo: VkPrimitiveTopology) -> &mut Self[src]

Update the input primitive topology

impl<'d> VertexProcessingStages<'d>[src]

pub fn generate_stages(
    &self
) -> (Vec<VkPipelineShaderStageCreateInfo>, Vec<Option<Box<VkSpecializationInfo>>>)
[src]

Trait Implementations

impl<'d> Clone for VertexProcessingStages<'d>[src]

Auto Trait Implementations

impl<'d> !RefUnwindSafe for VertexProcessingStages<'d>

impl<'d> !Send for VertexProcessingStages<'d>

impl<'d> !Sync for VertexProcessingStages<'d>

impl<'d> Unpin for VertexProcessingStages<'d>

impl<'d> !UnwindSafe for VertexProcessingStages<'d>

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, 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.