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§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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)