Struct wgpu::core::pipeline::RenderPipelineDescriptor
source · pub struct RenderPipelineDescriptor<'a> {
pub label: Option<Cow<'a, str>>,
pub layout: Option<Id<PipelineLayout<Api>>>,
pub vertex: VertexState<'a>,
pub primitive: PrimitiveState,
pub depth_stencil: Option<DepthStencilState>,
pub multisample: MultisampleState,
pub fragment: Option<FragmentState<'a>>,
pub multiview: Option<NonZeroU32>,
}
Expand description
Describes a render (graphics) pipeline.
Fields§
§label: Option<Cow<'a, str>>
§layout: Option<Id<PipelineLayout<Api>>>
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.
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 moreAuto Trait Implementations§
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