#[repr(C, align(8))]pub struct Primvar { /* private fields */ }
Expand description
Schema wrapper for usd.Attribute for authoring and introspecting attributes that are primvars.
Primvar provides API for authoring and retrieving the additional data required to encode an attribute as a “Primvar”, which is a convenient contraction of RenderMan’s “Primitive Variable” concept, which is represented in Alembic as “arbitrary geometry parameters” (arbGeomParams).
Implementations§
Methods from Deref<Target = PrimvarRef>§
sourcepub fn get_interpolation(&self) -> Token
pub fn get_interpolation(&self) -> Token
Return the Primvar’s interpolation.
Interpolation determines how the Primvar interpolates over a geometric primitive.
pub fn set_interpolation(&self, interpolation: &Token) -> bool
Trait Implementations§
source§impl AsMut<PrimvarRef> for Primvar
impl AsMut<PrimvarRef> for Primvar
source§fn as_mut(&mut self) -> &mut PrimvarRef
fn as_mut(&mut self) -> &mut PrimvarRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<PrimvarRef> for Primvar
impl AsRef<PrimvarRef> for Primvar
source§fn as_ref(&self) -> &PrimvarRef
fn as_ref(&self) -> &PrimvarRef
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for Primvar
impl !Send for Primvar
impl !Sync for Primvar
impl Unpin for Primvar
impl UnwindSafe for Primvar
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