pub struct Element {
pub id: u32,
pub name: String,
pub index: u32,
pub component_type: u8,
pub system_value: u8,
pub interpolation: u8,
pub row: u32,
pub column: u8,
pub rows: u32,
pub columns: u8,
pub placed: bool,
}Expand description
One signature element of the entry point: its id (the sigId loadInput and storeOutput name), its first
register and column, and its size.
Fields§
§id: u32The id the loadInput and storeOutput operations name the element by.
name: StringThe semantic name.
index: u32The first semantic index.
component_type: u8DXIL component type (5 u32, 4 i32, 9 f32, …).
system_value: u8DXIL semantic kind (0 arbitrary, 1 SV_VertexID, 3 SV_Position, 13 SV_IsFrontFace, …).
interpolation: u8DXIL interpolation mode (1 constant, 2 linear, 4 linear noperspective, …).
row: u32The first register the element occupies.
column: u8The first component (0 x to 3 w) of that register.
rows: u32How many registers it spans.
columns: u8How many components of each register it uses.
placed: boolAn element the packer did not place (system values read another way): no register.
Trait Implementations§
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