[][src]Struct wgpu::BindGroupDescriptorBase

pub struct BindGroupDescriptorBase<'a, L, B> where
    B: Clone
{ pub label: Option<Cow<'a, str>>, pub layout: L, pub entries: Cow<'a, [B]>, }

Describes a group of bindings and the resources to be bound.

Fields

label: Option<Cow<'a, str>>

Debug label of the bind group. This will show up in graphics debuggers for easy identification.

layout: L

The [BindGroupLayout] that corresponds to this bind group.

entries: Cow<'a, [B]>

The resources to bind to this bind group.

Implementations

impl<'a, L, B> BindGroupDescriptor<'a, L, B> where
    B: Clone
[src]

pub fn new(
    layout: L,
    entries: impl IntoCow<'a, [B]>
) -> BindGroupDescriptor<'a, L, B>
[src]

pub fn label(
    &mut self,
    label: impl IntoCow<'a, str>
) -> &mut BindGroupDescriptor<'a, L, B>
[src]

Trait Implementations

impl<'a, L, B> Clone for BindGroupDescriptor<'a, L, B> where
    B: Clone,
    L: Clone
[src]

impl<'a, L, B> Debug for BindGroupDescriptor<'a, L, B> where
    B: Clone + Debug,
    L: Debug
[src]

impl<'de, 'a, L, B> Deserialize<'de> for BindGroupDescriptor<'a, L, B> where
    B: Clone + Deserialize<'de>,
    L: Deserialize<'de>, 
[src]

impl<'a, L, B> Eq for BindGroupDescriptor<'a, L, B> where
    B: Clone + Eq,
    L: Eq
[src]

impl<'a, L, B> Hash for BindGroupDescriptor<'a, L, B> where
    B: Clone + Hash,
    L: Hash
[src]

impl<'a, L, B> PartialEq<BindGroupDescriptor<'a, L, B>> for BindGroupDescriptor<'a, L, B> where
    B: Clone + PartialEq<B>,
    L: PartialEq<L>, 
[src]

impl<'a, L, B> Serialize for BindGroupDescriptor<'a, L, B> where
    B: Clone + Serialize,
    L: Serialize
[src]

Auto Trait Implementations

impl<'a, L, B> RefUnwindSafe for BindGroupDescriptor<'a, L, B> where
    B: RefUnwindSafe,
    L: RefUnwindSafe

impl<'a, L, B> Send for BindGroupDescriptor<'a, L, B> where
    B: Send + Sync,
    L: Send

impl<'a, L, B> Sync for BindGroupDescriptor<'a, L, B> where
    B: Sync,
    L: Sync

impl<'a, L, B> Unpin for BindGroupDescriptor<'a, L, B> where
    B: Unpin,
    L: Unpin

impl<'a, L, B> UnwindSafe for BindGroupDescriptor<'a, L, B> where
    B: RefUnwindSafe + UnwindSafe,
    L: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.