pub enum SourceKind {
None,
Temporary(u8),
Input,
Constant,
}Expand description
What a source operand reads.
Variants§
None
No register: the operand is unused (register type 0).
Temporary(u8)
A temporary register R<n>, 0 to 31.
Input
A vertex attribute: the instruction’s one input index (v[n]), or that index plus the address register where
Instruction::input_relative is set.
Constant
A float constant: the instruction’s one constant index (c[n]), or that index plus the address register where
Instruction::constant_relative is set.
Trait Implementations§
Source§impl Clone for SourceKind
impl Clone for SourceKind
impl Copy for SourceKind
Source§impl Debug for SourceKind
impl Debug for SourceKind
impl Eq for SourceKind
Source§impl PartialEq for SourceKind
impl PartialEq for SourceKind
impl StructuralPartialEq for SourceKind
Auto Trait Implementations§
impl Forget for SourceKind
impl Freeze for SourceKind
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnsafeUnpin for SourceKind
impl UnwindSafe for SourceKind
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