pub struct PipelineLayoutDescriptor<'a, BGL = BindGroupLayoutId>{
pub label: Label<'a>,
pub bind_group_layouts: Cow<'a, [BGL]>,
pub immediates_ranges: Cow<'a, [ImmediateRange]>,
}Expand description
Describes a pipeline layout.
A PipelineLayoutDescriptor can be used to create a pipeline layout.
Fields§
§label: Label<'a>Debug label of the pipeline layout.
This will show up in graphics debuggers for easy identification.
bind_group_layouts: Cow<'a, [BGL]>Bind groups that this pipeline uses. The first entry will provide all the bindings for “set = 0”, second entry will provide all the bindings for “set = 1” etc.
immediates_ranges: Cow<'a, [ImmediateRange]>Set of immediate data ranges this pipeline uses. Each shader stage that
uses immediates must define the range in immediate data memory that
corresponds to its single layout(immediates) uniform block.
If this array is non-empty, the
Features::IMMEDIATES feature must
be enabled.
Trait Implementations§
Source§impl<'a, BGL: Clone> Clone for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL: Clone> Clone for PipelineLayoutDescriptor<'a, BGL>
Source§fn clone(&self) -> PipelineLayoutDescriptor<'a, BGL>
fn clone(&self) -> PipelineLayoutDescriptor<'a, BGL>
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<'a, BGL: Debug> Debug for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL: Debug> Debug for PipelineLayoutDescriptor<'a, BGL>
Source§impl<'de, 'a, BGL> Deserialize<'de> for PipelineLayoutDescriptor<'a, BGL>
impl<'de, 'a, BGL> Deserialize<'de> for PipelineLayoutDescriptor<'a, BGL>
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, BGL: Hash> Hash for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL: Hash> Hash for PipelineLayoutDescriptor<'a, BGL>
Source§impl<'a, BGL: PartialEq> PartialEq for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL: PartialEq> PartialEq for PipelineLayoutDescriptor<'a, BGL>
Source§fn eq(&self, other: &PipelineLayoutDescriptor<'a, BGL>) -> bool
fn eq(&self, other: &PipelineLayoutDescriptor<'a, BGL>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a, BGL> Serialize for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL> Serialize for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL: Eq> Eq for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL> StructuralPartialEq for PipelineLayoutDescriptor<'a, BGL>
Auto Trait Implementations§
impl<'a, BGL = Id<BindGroupLayout>> !Freeze for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL = Id<BindGroupLayout>> !RefUnwindSafe for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL = Id<BindGroupLayout>> !Send for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL = Id<BindGroupLayout>> !Sync for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL = Id<BindGroupLayout>> !Unpin for PipelineLayoutDescriptor<'a, BGL>
impl<'a, BGL = Id<BindGroupLayout>> !UnwindSafe for PipelineLayoutDescriptor<'a, BGL>
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> 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