pub struct RenderPipelineDesc {
pub label: DebugLabel,
pub pipeline_layout: GpuPipelineLayoutHandle,
pub vertex_entrypoint: String,
pub vertex_handle: GpuShaderModuleHandle,
pub fragment_entrypoint: String,
pub fragment_handle: GpuShaderModuleHandle,
pub vertex_buffers: SmallVec<[VertexBufferLayout; 4]>,
pub render_targets: SmallVec<[Option<ColorTargetState>; 4]>,
pub primitive: PrimitiveState,
pub depth_stencil: Option<DepthStencilState>,
pub multisample: MultisampleState,
}
Expand description
Renderpipeline descriptor, can be converted into [wgpu::RenderPipeline
] (which isn’t hashable or comparable)
Fields§
§label: DebugLabel
Debug label of the pipeline. This will show up in graphics debuggers for easy identification.
pipeline_layout: GpuPipelineLayoutHandle
§vertex_entrypoint: String
§vertex_handle: GpuShaderModuleHandle
§fragment_entrypoint: String
§fragment_handle: GpuShaderModuleHandle
§vertex_buffers: SmallVec<[VertexBufferLayout; 4]>
The format of any vertex buffers used with this pipeline.
render_targets: SmallVec<[Option<ColorTargetState>; 4]>
The color state of the render targets.
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.
Implementations§
source§impl RenderPipelineDesc
impl RenderPipelineDesc
fn create_render_pipeline( &self, device: &Device, pipeline_layouts: &GpuPipelineLayoutPool, shader_modules: &GpuShaderModulePool ) -> Result<RenderPipeline, RenderPipelineCreationError>
Trait Implementations§
source§impl Clone for RenderPipelineDesc
impl Clone for RenderPipelineDesc
source§fn clone(&self) -> RenderPipelineDesc
fn clone(&self) -> RenderPipelineDesc
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 Debug for RenderPipelineDesc
impl Debug for RenderPipelineDesc
source§impl Hash for RenderPipelineDesc
impl Hash for RenderPipelineDesc
source§impl PartialEq for RenderPipelineDesc
impl PartialEq for RenderPipelineDesc
source§fn eq(&self, other: &RenderPipelineDesc) -> bool
fn eq(&self, other: &RenderPipelineDesc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RenderPipelineDesc
impl StructuralPartialEq for RenderPipelineDesc
Auto Trait Implementations§
impl Freeze for RenderPipelineDesc
impl RefUnwindSafe for RenderPipelineDesc
impl Send for RenderPipelineDesc
impl Sync for RenderPipelineDesc
impl Unpin for RenderPipelineDesc
impl UnwindSafe for RenderPipelineDesc
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
§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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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