pub struct BindingDecl {
pub name: &'static str,
pub kind: BindingKind,
}Expand description
One @group(0) @binding(n) declaration. Its position in a pass’s slice is n.
Fields§
§name: &'static strVariable name the shader gives the binding.
kind: BindingKindKind of resource it binds.
Trait Implementations§
Source§impl Clone for BindingDecl
impl Clone for BindingDecl
impl Copy for BindingDecl
Auto Trait Implementations§
impl Freeze for BindingDecl
impl RefUnwindSafe for BindingDecl
impl Send for BindingDecl
impl Sync for BindingDecl
impl Unpin for BindingDecl
impl UnsafeUnpin for BindingDecl
impl UnwindSafe for BindingDecl
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