pub struct D3dSignature {
pub register: u32,
pub mask: u8,
pub read_write_mask: u8,
}Expand description
Where a D3D signature element sits: its register (four 32-bit lanes each) and the lanes of it the element occupies, as a mask (bit k is lane k, x first), and the signature’s read/write mask as stored.
Fields§
§register: u32The signature register the element is in, counted from 0; each register holds four 32-bit lanes.
mask: u8The lanes of the register the element occupies: bit 0 is x, bit 3 is w.
read_write_mask: u8The signature’s second mask as stored: for an input, the lanes the program always reads; for an output, the lanes it never writes.
Trait Implementations§
Source§impl Clone for D3dSignature
impl Clone for D3dSignature
impl Copy for D3dSignature
Source§impl Debug for D3dSignature
impl Debug for D3dSignature
impl Eq for D3dSignature
Source§impl Hash for D3dSignature
impl Hash for D3dSignature
Source§impl Ord for D3dSignature
impl Ord for D3dSignature
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for D3dSignature
impl PartialEq for D3dSignature
Source§impl PartialOrd for D3dSignature
impl PartialOrd for D3dSignature
Source§impl Serialize for D3dSignature
impl Serialize for D3dSignature
impl StructuralPartialEq for D3dSignature
Auto Trait Implementations§
impl Freeze for D3dSignature
impl RefUnwindSafe for D3dSignature
impl Send for D3dSignature
impl Sync for D3dSignature
impl Unpin for D3dSignature
impl UnsafeUnpin for D3dSignature
impl UnwindSafe for D3dSignature
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