pub struct Destination {
pub word: usize,
pub register: Register,
pub mask: u8,
pub saturate: bool,
pub partial_precision: bool,
pub centroid: bool,
pub shift: i8,
pub relative: Option<Relative>,
}Expand description
A destination operand.
Fields§
§word: usizeThe word of the operand token.
register: RegisterThe register written.
mask: u8The lanes written, bit 0 x to bit 3 w (bits 16 to 19); a declaration’s lanes declared.
saturate: bool_sat (D3DSPDM_SATURATE, bit 20).
partial_precision: bool_pp (D3DSPDM_PARTIALPRECISION, bit 21).
centroid: bool_centroid (D3DSPDM_MSAMPCENTROID, bit 22).
shift: i8The pixel 1.x result shift (bits 24 to 27 as a signed number): 1 _x2, 2 _x4, 3 _x8, -1 _d2, -2 _d4,
-3 _d8; 0 otherwise and in every other version.
relative: Option<Relative>The index register, for a relatively addressed destination (o[aL] of a vertex 3.0 program).
Trait Implementations§
Source§impl Clone for Destination
impl Clone for Destination
impl Copy for Destination
Source§impl Debug for Destination
impl Debug for Destination
impl Eq for Destination
Source§impl Hash for Destination
impl Hash for Destination
Source§impl PartialEq for Destination
impl PartialEq for Destination
impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Forget for Destination
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnsafeUnpin for Destination
impl UnwindSafe for Destination
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