pub struct Condition {
pub test: bool,
pub code: u8,
pub swizzle: [u8; 4],
pub register: u8,
pub update: bool,
}Expand description
The condition code test and register of an instruction.
Fields§
§test: boolWhether the test is enabled (the operation runs per lane where it holds).
code: u8The test, 3 bits as stored (NV_vertex_program2: 0 FL, 1 LT, 2 EQ, 3 LE, 4 GT, 5 NE, 6 GE, 7 TR).
swizzle: [u8; 4]The condition register lane each test lane reads.
register: u8Which of the two condition registers is tested.
update: boolWhether the operation updates the condition register.
Trait Implementations§
impl Copy for Condition
impl Eq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Forget for Condition
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnsafeUnpin for Condition
impl UnwindSafe for Condition
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