Struct sierra::GraphicsPipelineDesc
source · pub struct GraphicsPipelineDesc {
pub vertex_bindings: Vec<VertexInputBinding>,
pub vertex_attributes: Vec<VertexInputAttribute>,
pub primitive_topology: PrimitiveTopology,
pub primitive_restart_enable: bool,
pub vertex_shader: VertexShader,
pub rasterizer: Option<Rasterizer>,
pub layout: PipelineLayout,
}
Expand description
Graphics pipeline state definition. Fields are ordered to match pipeline stages, including fixed functions.
Fields§
§vertex_bindings: Vec<VertexInputBinding>
For each vertex buffer specifies how it is bound.
vertex_attributes: Vec<VertexInputAttribute>
For each vertex attribute specifies where is the data is read from.
primitive_topology: PrimitiveTopology
Input primitives topology.
primitive_restart_enable: bool
If True
then special marker index value !0
will restart
primitive assembly next index, discarding any incomplete primitives.
vertex_shader: VertexShader
Vertex shader for pipeline.
rasterizer: Option<Rasterizer>
Primitives rasteriazation behavior.
If None
then no rasterization is performed.
This is useful when only side-effects of earlier stages are needed.
layout: PipelineLayout
Pipeline layout.
Trait Implementations§
source§impl Clone for GraphicsPipelineDesc
impl Clone for GraphicsPipelineDesc
source§fn clone(&self) -> GraphicsPipelineDesc
fn clone(&self) -> GraphicsPipelineDesc
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GraphicsPipelineDesc
impl Debug for GraphicsPipelineDesc
source§impl Hash for GraphicsPipelineDesc
impl Hash for GraphicsPipelineDesc
source§impl PartialEq<GraphicsPipelineDesc> for GraphicsPipelineDesc
impl PartialEq<GraphicsPipelineDesc> for GraphicsPipelineDesc
source§fn eq(&self, other: &GraphicsPipelineDesc) -> bool
fn eq(&self, other: &GraphicsPipelineDesc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.