pub struct PrimitiveVariable<'a> { /* private fields */ }Expand description
One primitive variable, resolved against its primitive.
Implementations§
Source§impl<'a> PrimitiveVariable<'a>
impl<'a> PrimitiveVariable<'a>
Sourcepub fn values(&self) -> &'a OwnedArgument
pub fn values(&self) -> &'a OwnedArgument
The argument the values live in.
Sourcepub fn interpolation(&self) -> Interpolation
pub fn interpolation(&self) -> Interpolation
Which of the four classes this variable is.
Sourcepub fn face_vertex_count(&self) -> usize
pub fn face_vertex_count(&self) -> usize
How many face-vertices the primitive has.
Sourcepub fn face_varying_indices(&self) -> impl Iterator<Item = usize> + '_
pub fn face_varying_indices(&self) -> impl Iterator<Item = usize> + '_
The value index each face-vertex reads, in face order.
This is the one order every backend wants and none of them
should have to derive: whatever the storage, the result is
face_vertex_count() indices into PrimitiveVariable::values.
Trait Implementations§
Source§impl<'a> Clone for PrimitiveVariable<'a>
impl<'a> Clone for PrimitiveVariable<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrimitiveVariable<'a>
impl<'a> RefUnwindSafe for PrimitiveVariable<'a>
impl<'a> Send for PrimitiveVariable<'a>
impl<'a> Sync for PrimitiveVariable<'a>
impl<'a> Unpin for PrimitiveVariable<'a>
impl<'a> UnsafeUnpin for PrimitiveVariable<'a>
impl<'a> UnwindSafe for PrimitiveVariable<'a>
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