[−][src]Struct bedrock::VertexProcessingStages
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 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]
&mut self,
gsh: S
) -> &mut Self
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]
&mut self,
fsh: S
) -> &mut Self
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]
&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
impl<'d> VertexProcessingStages<'d>
[src]
pub fn generate_stages(
&self
) -> (Vec<VkPipelineShaderStageCreateInfo>, Vec<Option<Box<VkSpecializationInfo>>>)
[src]
&self
) -> (Vec<VkPipelineShaderStageCreateInfo>, Vec<Option<Box<VkSpecializationInfo>>>)
Trait Implementations
impl<'d> Clone for VertexProcessingStages<'d>
[src]
fn clone(&self) -> VertexProcessingStages<'d>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,