pub struct ExamplePipeline { /* private fields */ }Methods from Deref<Target = RenderPipeline>§
pub fn get_bind_group_layout(&self, index: u32) -> BindGroupLayout
pub fn get_bind_group_layout(&self, index: u32) -> BindGroupLayout
Get an object representing the bind group layout at a given index.
If this pipeline was created with a [default layout][RenderPipelineDescriptor::layout], then
bind groups created with the returned BindGroupLayout can only be used with this pipeline.
This method will raise a validation error if there is no bind group layout at index.
Trait Implementations§
Source§impl Clone for ExamplePipeline
impl Clone for ExamplePipeline
Source§fn clone(&self) -> ExamplePipeline
fn clone(&self) -> ExamplePipeline
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 ExamplePipeline
impl Debug for ExamplePipeline
Source§impl Deref for ExamplePipeline
impl Deref for ExamplePipeline
Source§impl Hash for ExamplePipeline
impl Hash for ExamplePipeline
Source§impl MewPipeline for ExamplePipeline
impl MewPipeline for ExamplePipeline
Source§type BindGroupSet = (ExampleBindGroup,)
type BindGroupSet = (ExampleBindGroup,)
A tuple of the pipeline’s internal bind groups (max of 4).
Source§type BindGroupArray<T> = [T; 1]
type BindGroupArray<T> = [T; 1]
A generic array the length of the number of bind groups
(literally
[T; N]).Source§type VertexArray<T> = [T; 1]
type VertexArray<T> = [T; 1]
A generic array the length of the number of vertex types
(literally
[T; N]).Source§type FragmentArray<T> = [T; 1]
type FragmentArray<T> = [T; 1]
A generic array the length of the number of fragment targets
(literally
[T; N]).Source§fn bind_group_layout_types_array() -> Self::BindGroupArray<(TypeId, BindGroupLayoutDescriptor<'static>)>
fn bind_group_layout_types_array() -> Self::BindGroupArray<(TypeId, BindGroupLayoutDescriptor<'static>)>
Get an array of internal bind group layouts.
fn map_bind_group_array<A, B, F: FnMut(A) -> B>( array: Self::BindGroupArray<A>, f: F, ) -> Self::BindGroupArray<B>
fn bind_group_ref_array( layout_array: &Self::BindGroupArray<BindGroupLayout>, ) -> Self::BindGroupArray<&BindGroupLayout>
Source§fn layout_desc<'a, 'b>(
bind_group_layouts: &'a Self::BindGroupArray<&'b BindGroupLayout>,
) -> PipelineLayoutDescriptor<'a>
fn layout_desc<'a, 'b>( bind_group_layouts: &'a Self::BindGroupArray<&'b BindGroupLayout>, ) -> PipelineLayoutDescriptor<'a>
Get the layout descriptor for the pipeline. Requires the output from
Self::bind_group_layout_types_array because const fns in traits are
“uNsTAbLe”, apparently, and lifetimes exist.fn fragment_targets<'a>( surface_fmt: Option<TextureFormat>, ) -> Self::FragmentArray<Option<ColorTargetState>>
fn pipeline_desc<'a>( layout: &'a MewPipelineLayout<Self>, shader: &'a ShaderModule, vertex_entry: Option<&'a str>, fragment_entry: Option<&'a str>, fragment_targets: &'a Self::FragmentArray<Option<ColorTargetState>>, ) -> RenderPipelineDescriptor<'a>
Source§impl Ord for ExamplePipeline
impl Ord for ExamplePipeline
Source§fn cmp(&self, other: &ExamplePipeline) -> Ordering
fn cmp(&self, other: &ExamplePipeline) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExamplePipeline
impl PartialEq for ExamplePipeline
Source§impl PartialOrd for ExamplePipeline
impl PartialOrd for ExamplePipeline
impl Eq for ExamplePipeline
impl StructuralPartialEq for ExamplePipeline
Auto Trait Implementations§
impl Freeze for ExamplePipeline
impl !RefUnwindSafe for ExamplePipeline
impl Send for ExamplePipeline
impl Sync for ExamplePipeline
impl Unpin for ExamplePipeline
impl !UnwindSafe for ExamplePipeline
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Checks if this value is equivalent to the given key. Read more
§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.