pub struct Element {}Expand description
A signature element record (16 bytes).
Fields§
§name: u32The offset of the semantic name in the string table (an empty string for a system value).
indices: u32The offset of the element’s first semantic index in the semantic-index table.
rows: u8How many registers the element spans.
start_row: u8The first register.
columns: u8How many components of each register it uses.
start_column: u8The first component (0 x to 3 w).
allocated: boolThe packer placed the element in registers.
semantic_kind: u8DXIL semantic kind (0 arbitrary, 3 SV_Position, …).
component_type: u8The component type (1 u32, 2 i32, 3 f32: not the metadata’s numbers, which are 5, 4 and 9).
interpolation: u8DXIL interpolation mode.
dynamic_index_mask: u8The components indexed dynamically, a 4-bit mask.
stream: u8The output stream (0 to 3).
reserved: u8The record’s last byte, as stored.
Trait Implementations§
impl Copy for Element
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Forget for Element
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Element
impl UnwindSafe for Element
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