pub struct VaryingDef {
pub name: Option<&'static str>,
pub value: NodeRef,
pub ty: Type,
pub flat: bool,
}Expand description
VaryingNode — a value computed in the vertex stage and interpolated.
Fields§
§name: Option<&'static str>toVarying( 'name' ); None numbers it nodeVaryingN.
value: NodeRefThe node whose value is carried across stages.
ty: TypeThe varying’s WGSL type.
flat: boolu32 varyings need @interpolate(flat, either).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VaryingDef
impl !Send for VaryingDef
impl !Sync for VaryingDef
impl !UnwindSafe for VaryingDef
impl Freeze for VaryingDef
impl Unpin for VaryingDef
impl UnsafeUnpin for VaryingDef
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