pub struct RenderPipelineDescriptor<'a, PLL = Arc<PipelineLayout>, SM = Arc<ShaderModule>, PLC = Arc<PipelineCache>> {
pub label: Label<'a>,
pub layout: Option<PLL>,
pub vertex: VertexState<'a, SM>,
pub primitive: PrimitiveState,
pub depth_stencil: Option<DepthStencilState>,
pub multisample: MultisampleState,
pub fragment: Option<FragmentState<'a, SM>>,
pub multiview_mask: Option<NonZeroU32>,
pub cache: Option<PLC>,
}Expand description
Describes a render (graphics) pipeline.
Fields§
§label: Label<'a>§layout: Option<PLL>The layout of bind groups for this pipeline.
vertex: VertexState<'a, SM>The vertex processing state for this pipeline.
primitive: PrimitiveStateThe 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: MultisampleStateThe multi-sampling properties of the pipeline.
fragment: Option<FragmentState<'a, SM>>The fragment processing state for this pipeline.
multiview_mask: 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<PLC>The pipeline cache to use when creating this pipeline.
Trait Implementations§
Source§impl<'a, PLL: Clone, SM: Clone, PLC: Clone> Clone for RenderPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL: Clone, SM: Clone, PLC: Clone> Clone for RenderPipelineDescriptor<'a, PLL, SM, PLC>
Source§impl<'a, PLL: Debug, SM: Debug, PLC: Debug> Debug for RenderPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL: Debug, SM: Debug, PLC: Debug> Debug for RenderPipelineDescriptor<'a, PLL, SM, PLC>
Source§impl<'de, 'a, PLL, SM, PLC> Deserialize<'de> for RenderPipelineDescriptor<'a, PLL, SM, PLC>
Available on crate feature serde only.
impl<'de, 'a, PLL, SM, PLC> Deserialize<'de> for RenderPipelineDescriptor<'a, PLL, SM, PLC>
Available on crate feature
serde only.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
Source§impl<'a, PLL, SM, PLC> Serialize for RenderPipelineDescriptor<'a, PLL, SM, PLC>
Available on crate feature serde only.
impl<'a, PLL, SM, PLC> Serialize for RenderPipelineDescriptor<'a, PLL, SM, PLC>
Available on crate feature
serde only.Auto Trait Implementations§
impl<'a, PLL, SM, PLC> Forget for RenderPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> Freeze for RenderPipelineDescriptor<'a, PLL, SM, PLC>where
&'a str: Freeze,
String: Freeze,
PLL: Freeze,
SM: Freeze,
*const u8 is !null: Freeze,
PhantomData<(String, f64)>: Freeze,
&'a [Option<VertexBufferLayout<'a>>]: Freeze,
Vec<Option<VertexBufferLayout<'a>>>: Freeze,
&'a [Option<ColorTargetState>]: Freeze,
Vec<Option<ColorTargetState>>: Freeze,
NonZero<u32>: Freeze,
PLC: Freeze,
impl<'a, PLL, SM, PLC> Move for RenderPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> RefUnwindSafe for RenderPipelineDescriptor<'a, PLL, SM, PLC>where
String: RefUnwindSafe,
PLL: RefUnwindSafe,
SM: RefUnwindSafe,
Vec<VertexAttribute>: RefUnwindSafe,
Vec<Option<VertexBufferLayout<'a>>>: RefUnwindSafe,
Vec<Option<ColorTargetState>>: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
PLC: RefUnwindSafe,
impl<'a, PLL, SM, PLC> Send for RenderPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> Sync for RenderPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> Unpin for RenderPipelineDescriptor<'a, PLL, SM, PLC>
impl<'a, PLL, SM, PLC> UnsafeUnpin for RenderPipelineDescriptor<'a, PLL, SM, PLC>where
&'a str: UnsafeUnpin,
String: UnsafeUnpin,
PLL: UnsafeUnpin,
SM: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, f64)>: UnsafeUnpin,
&'a [Option<VertexBufferLayout<'a>>]: UnsafeUnpin,
Vec<Option<VertexBufferLayout<'a>>>: UnsafeUnpin,
&'a [Option<ColorTargetState>]: UnsafeUnpin,
Vec<Option<ColorTargetState>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PLC: UnsafeUnpin,
impl<'a, PLL, SM, PLC> UnwindSafe for RenderPipelineDescriptor<'a, PLL, SM, PLC>where
&'a str: UnwindSafe,
String: UnwindSafe,
PLL: UnwindSafe,
SM: UnwindSafe,
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
&'a [Option<VertexBufferLayout<'a>>]: UnwindSafe,
Vec<Option<VertexBufferLayout<'a>>>: UnwindSafe,
&'a [Option<ColorTargetState>]: UnwindSafe,
Vec<Option<ColorTargetState>>: UnwindSafe,
NonZero<u32>: UnwindSafe,
PLC: UnwindSafe,
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