Struct bedrock::VertexProcessingStages
[−]
[src]
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]
vsh: PipelineShader<'d>,
vbind: &'d [VkVertexInputBindingDescription],
vattr: &'d [VkVertexInputAttributeDescription],
primitive_topo: VkPrimitiveTopology
) -> Self
pub fn vertex_shader(&mut self, vsh: PipelineShader<'d>) -> &mut Self
[src]
Update the vertex shader
pub fn geometry_shader<S: Into<Option<PipelineShader<'d>>>>(
&mut self,
gsh: S
) -> &mut Self
[src]
&mut self,
gsh: S
) -> &mut Self
Update the geometry shader, or disable geometry shader stage
pub fn fragment_shader<S: Into<Option<PipelineShader<'d>>>>(
&mut self,
fsh: S
) -> &mut Self
[src]
&mut self,
fsh: S
) -> &mut Self
Update the fragment shader, or disable fragment shader stage
pub fn vertex_binding(
&mut self,
vbind: &'d [VkVertexInputBindingDescription]
) -> &mut Self
[src]
&mut self,
vbind: &'d [VkVertexInputBindingDescription]
) -> &mut Self
Update the vertex binding description
pub fn vertex_attributes(
&mut self,
vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
[src]
&mut self,
vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
Update the vertex attribute description
pub fn vertex_input(
&mut self,
vbind: &'d [VkVertexInputBindingDescription],
vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
[src]
&mut self,
vbind: &'d [VkVertexInputBindingDescription],
vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
Update the vertex input description
pub fn vertex_processing(
&mut self,
vsh: PipelineShader<'d>,
vbind: &'d [VkVertexInputBindingDescription],
vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
[src]
&mut self,
vsh: PipelineShader<'d>,
vbind: &'d [VkVertexInputBindingDescription],
vattr: &'d [VkVertexInputAttributeDescription]
) -> &mut Self
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 theindexType
parameter ofvkCmdBindIndexBuffer
is equal toVK_INDEX_TYPE_UINT32
, or0xffff
whenindexType
is equal toVK_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
Trait Implementations
impl<'d> Clone for VertexProcessingStages<'d>
[src]
fn clone(&self) -> VertexProcessingStages<'d>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more