[][src]Struct wgpu::BindGroupEntryBase

pub struct BindGroupEntryBase<R> {
    pub binding: u32,
    pub resource: R,
}

Bindable resource and the slot to bind it to.

Fields

binding: u32

Slot for which binding provides resource. Corresponds to an entry of the same binding index in the BindGroupLayoutDescriptor.

resource: R

Resource to attach to the binding

Implementations

impl<R> BindGroupEntry<R>[src]

pub fn new(binding: u32, resource: R) -> BindGroupEntry<R>[src]

Trait Implementations

impl<R> Clone for BindGroupEntry<R> where
    R: Clone
[src]

impl<R> Debug for BindGroupEntry<R> where
    R: Debug
[src]

impl<'de, R> Deserialize<'de> for BindGroupEntry<R> where
    R: Deserialize<'de>, 
[src]

impl<R> Eq for BindGroupEntry<R> where
    R: Eq
[src]

impl<R> Hash for BindGroupEntry<R> where
    R: Hash
[src]

impl<R> PartialEq<BindGroupEntry<R>> for BindGroupEntry<R> where
    R: PartialEq<R>, 
[src]

impl<R> Serialize for BindGroupEntry<R> where
    R: Serialize
[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for BindGroupEntry<R> where
    R: RefUnwindSafe

impl<R> Send for BindGroupEntry<R> where
    R: Send

impl<R> Sync for BindGroupEntry<R> where
    R: Sync

impl<R> Unpin for BindGroupEntry<R> where
    R: Unpin

impl<R> UnwindSafe for BindGroupEntry<R> where
    R: 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.