pub struct SharedMemoryDecl {
pub name: String,
pub element_type: WgslType,
pub dimensions: Vec<u32>,
}Expand description
Declaration of a shared memory variable.
Fields§
§name: StringVariable name.
element_type: WgslTypeElement type.
dimensions: Vec<u32>Dimensions (1D, 2D, etc.).
Implementations§
Trait Implementations§
Source§fn clone(&self) -> SharedMemoryDecl
fn clone(&self) -> SharedMemoryDecl
Returns a duplicate 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 moreAuto Trait Implementations§
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