pub struct StructLayout {
pub name: &'static str,
pub members: Vec<StructMember>,
}Expand description
struct( members, name ) — StructTypeNode: a named WGSL struct whose
members keep their declaration order.
Fields§
§name: &'static strThe struct’s name in WGSL.
members: Vec<StructMember>The struct’s members, in declaration order.
Trait Implementations§
Source§impl Clone for StructLayout
impl Clone for StructLayout
Source§impl Debug for StructLayout
impl Debug for StructLayout
Source§impl PartialEq for StructLayout
impl PartialEq for StructLayout
impl StructuralPartialEq for StructLayout
Auto Trait Implementations§
impl Freeze for StructLayout
impl RefUnwindSafe for StructLayout
impl Send for StructLayout
impl Sync for StructLayout
impl Unpin for StructLayout
impl UnsafeUnpin for StructLayout
impl UnwindSafe for StructLayout
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