pub struct Binding {
pub group: u32,
pub binding: u32,
pub resource: BindingResource,
}Fields§
§group: u32§binding: u32§resource: BindingResourceImplementations§
Source§impl Binding
impl Binding
pub const fn sampled_texture(group: u32, binding: u32, id: TextureId) -> Self
pub const fn storage_texture(group: u32, binding: u32, id: TextureId) -> Self
pub const fn uniform(group: u32, binding: u32, id: BufferId) -> Self
pub const fn storage_buffer(group: u32, binding: u32, id: BufferId) -> Self
pub const fn sampler(group: u32, binding: u32, id: SamplerId) -> Self
Trait Implementations§
impl Eq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.