pub struct RenderPipelineDescriptor<'a> {
pub label: Option<Cow<'a, str>>,
pub vertex_shader_module: ShaderModuleId,
pub vertex_entry_point: Cow<'a, str>,
pub fragment_shader_module: Option<ShaderModuleId>,
pub fragment_entry_point: Option<Cow<'a, str>>,
pub vertex_buffers_layout: Cow<'a, [VertexBufferLayoutDescriptor<'a>]>,
pub primitive_state: PrimitiveStateDescriptor,
pub depth_stencil_state: Option<DepthStencilStateDescriptor>,
pub color_target_states: Cow<'a, [ColorTargetStateDescriptor]>,
pub multisample_state: MultisampleStateDescriptor,
}Expand description
A complete descriptor for a render pipeline.
This struct aggregates all the state needed by the GPU to render primitives.
Fields§
§label: Option<Cow<'a, str>>An optional debug label.
vertex_shader_module: ShaderModuleIdThe compiled vertex shader module.
vertex_entry_point: Cow<'a, str>The name of the entry point function in the vertex shader.
fragment_shader_module: Option<ShaderModuleId>The compiled fragment shader module, if any.
fragment_entry_point: Option<Cow<'a, str>>The name of the entry point function in the fragment shader.
vertex_buffers_layout: Cow<'a, [VertexBufferLayoutDescriptor<'a>]>The layout of the vertex buffers.
primitive_state: PrimitiveStateDescriptorThe state for primitive assembly and rasterization.
depth_stencil_state: Option<DepthStencilStateDescriptor>The state for depth and stencil testing. If None, these tests are disabled.
color_target_states: Cow<'a, [ColorTargetStateDescriptor]>The states of all color targets this pipeline will render to.
multisample_state: MultisampleStateDescriptorThe multisampling state.
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 duplicate 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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more