pub struct RenderPipelineDescriptor<'a> {
pub label: Label<'a>,
pub layout: Option<PipelineLayoutId>,
pub vertex: VertexState<'a>,
pub primitive: PrimitiveState,
pub depth_stencil: Option<DepthStencilState>,
pub multisample: MultisampleState,
pub fragment: Option<FragmentState<'a>>,
pub multiview: Option<NonZeroU32>,
pub cache: Option<PipelineCacheId>,
}
Expand description
Describes a render (graphics) pipeline.
Fields§
§label: Label<'a>
§layout: Option<PipelineLayoutId>
The layout of bind groups for this pipeline.
vertex: VertexState<'a>
The vertex processing state for this pipeline.
primitive: PrimitiveState
The properties of the pipeline at the primitive assembly and rasterization level.
depth_stencil: Option<DepthStencilState>
The effect of draw calls on the depth and stencil aspects of the output target, if any.
multisample: MultisampleState
The multi-sampling properties of the pipeline.
fragment: Option<FragmentState<'a>>
The fragment processing state for this pipeline.
multiview: Option<NonZeroU32>
If the pipeline will be used with a multiview render pass, this indicates how many array layers the attachments will have.
cache: Option<PipelineCacheId>
The pipeline cache to use when creating this pipeline.
Trait Implementations§
Source§impl<'a> Clone for RenderPipelineDescriptor<'a>
impl<'a> Clone for RenderPipelineDescriptor<'a>
Source§fn clone(&self) -> RenderPipelineDescriptor<'a>
fn clone(&self) -> RenderPipelineDescriptor<'a>
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<'a> Debug for RenderPipelineDescriptor<'a>
impl<'a> Debug for RenderPipelineDescriptor<'a>
Source§impl<'de, 'a> Deserialize<'de> for RenderPipelineDescriptor<'a>
impl<'de, 'a> Deserialize<'de> for RenderPipelineDescriptor<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for RenderPipelineDescriptor<'a>
impl<'a> RefUnwindSafe for RenderPipelineDescriptor<'a>
impl<'a> Send for RenderPipelineDescriptor<'a>
impl<'a> Sync for RenderPipelineDescriptor<'a>
impl<'a> Unpin for RenderPipelineDescriptor<'a>
impl<'a> UnwindSafe for RenderPipelineDescriptor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more