Struct sierra::GraphicsPipelineInfo [−][src]
pub struct GraphicsPipelineInfo { 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, pub render_pass: RenderPass, pub subpass: u32, }
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.
render_pass: RenderPass
Render pass within which this pipeline will be executed.
subpass: u32
Subpass of the render pass within which this pipeline will be executed.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for GraphicsPipelineInfo
impl Send for GraphicsPipelineInfo
impl Sync for GraphicsPipelineInfo
impl Unpin for GraphicsPipelineInfo
impl !UnwindSafe for GraphicsPipelineInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more