pub struct SignatureElement {
pub stream: u32,
pub name: String,
pub index: u32,
pub system_value: u32,
pub component_type: u32,
pub register: u32,
pub mask: u8,
pub read_write_mask: u8,
pub bit: usize,
}Expand description
One element of an ISG1/OSG1/PSG1 part as stored.
Fields§
§stream: u32The geometry stream the element is written to (0 for every other element).
name: StringThe semantic name.
index: u32The semantic index.
system_value: u32D3D_NAME.
component_type: u32D3D_REGISTER_COMPONENT_TYPE.
register: u32The register the element is packed into.
mask: u8The components the element occupies, one bit each (x is bit 0).
read_write_mask: u8The components a program reads (inputs) or never writes (outputs), as stored.
bit: usizeWhere the record starts, in bits of the part.
Implementations§
Source§impl SignatureElement
impl SignatureElement
Sourcepub fn system_value_name(&self) -> &'static str
pub fn system_value_name(&self) -> &'static str
The name dxc’s listing gives the element’s system value (DxilProgramSigSemantic, D3D’s D3D_NAME): POS,
TARGET, …; NONE for none.
Sourcepub fn format_name(&self) -> &'static str
pub fn format_name(&self) -> &'static str
The name dxc’s listing gives the element’s component type (DxilProgramSigCompType): float, uint, …
Trait Implementations§
Source§impl Clone for SignatureElement
impl Clone for SignatureElement
Source§impl Debug for SignatureElement
impl Debug for SignatureElement
impl Eq for SignatureElement
Source§impl PartialEq for SignatureElement
impl PartialEq for SignatureElement
impl StructuralPartialEq for SignatureElement
Auto Trait Implementations§
impl Forget for SignatureElement
impl Freeze for SignatureElement
impl RefUnwindSafe for SignatureElement
impl Send for SignatureElement
impl Sync for SignatureElement
impl Unpin for SignatureElement
impl UnsafeUnpin for SignatureElement
impl UnwindSafe for SignatureElement
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