pub struct Relative {
pub word: Option<usize>,
pub register: Register,
pub swizzle: [u8; 4],
}Expand description
The index register of a relatively addressed operand (c[a0.x + 4], v[aL]).
Fields§
§word: Option<usize>The word of the relative-address token; None in a vertex 1.x program, whose index is a0.x with no token of
its own.
register: RegisterThe index register: the address register a0 or the loop counter aL.
swizzle: [u8; 4]The relative-address token’s swizzle, as stored (bits 16 to 23). Compilers write the lane they index with
replicated (a0.x as .xxxx); Microsoft’s assembler writes c0[a0] and [aL] with .xyzw. [0, 0, 0, 0]
in a vertex 1.x program.
Trait Implementations§
impl Copy for Relative
impl Eq for Relative
impl StructuralPartialEq for Relative
Auto Trait Implementations§
impl Forget for Relative
impl Freeze for Relative
impl RefUnwindSafe for Relative
impl Send for Relative
impl Sync for Relative
impl Unpin for Relative
impl UnsafeUnpin for Relative
impl UnwindSafe for Relative
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