pub struct Buffer {
pub name: String,
pub elem: Elem,
pub rw: Option<(u32, String)>,
}Expand description
A buffer declaration.
Fields§
§name: StringName used by the lowerings.
elem: ElemElement type.
rw: Option<(u32, String)>Scratch buffer: (length, base). Element i < length lives at
name[base + i] in WGSL (base is a host expression); out-of-range
loads read 0 and out-of-range stores are dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnsafeUnpin for Buffer
impl UnwindSafe for Buffer
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