pub struct BindGroupEntry<'a> {
pub binding: u32,
pub resource: BindingResource<'a>,
}
Expand description
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: BindingResource<'a>
Resource to attach to the binding
Trait Implementations§
Source§impl<'a> Clone for BindGroupEntry<'a>
impl<'a> Clone for BindGroupEntry<'a>
Source§fn clone(&self) -> BindGroupEntry<'a>
fn clone(&self) -> BindGroupEntry<'a>
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> Debug for BindGroupEntry<'a>
impl<'a> Debug for BindGroupEntry<'a>
Source§impl<'de, 'a> Deserialize<'de> for BindGroupEntry<'a>
impl<'de, 'a> Deserialize<'de> for BindGroupEntry<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for BindGroupEntry<'a>
impl<'a> RefUnwindSafe for BindGroupEntry<'a>
impl<'a> Send for BindGroupEntry<'a>
impl<'a> Sync for BindGroupEntry<'a>
impl<'a> Unpin for BindGroupEntry<'a>
impl<'a> UnwindSafe for BindGroupEntry<'a>
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