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
Source§fn clone(&self) -> D3dSignature
fn clone(&self) -> D3dSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn cmp(&self, other: &D3dSignature) -> Ordering
fn cmp(&self, other: &D3dSignature) -> Ordering
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for D3dSignature
Auto Trait Implementations§
impl Forget for D3dSignature
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