pub struct InputElementInfo {
pub semantic: String,
pub index: u32,
pub format: Format,
pub input_slot: u32,
pub aligned_byte_offset: u32,
pub input_slot_class: InputSlotClass,
pub step_rate: u32,
}Expand description
Describe a single element of an InputLayoutInfo.
Fields§
§semantic: StringElement semantic ie. POSITION, TEXCOORD, COLOR etc.
index: u32Index of the semantic ie. TEXCOORD0, TEXCOORD1 etc.
format: FormatFormat of the element size and width.
input_slot: u32The vertex buffer slot this buffer will be bound to.
aligned_byte_offset: u32Aligned byte offset of this element from the start of the struct.
input_slot_class: InputSlotClassVertex or Instance stride.
step_rate: u32Rate at which to step vertices.
Trait Implementations§
Source§impl Clone for InputElementInfo
impl Clone for InputElementInfo
Source§fn clone(&self) -> InputElementInfo
fn clone(&self) -> InputElementInfo
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 moreSource§impl<'de> Deserialize<'de> for InputElementInfo
impl<'de> Deserialize<'de> for InputElementInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputElementInfo
impl RefUnwindSafe for InputElementInfo
impl Send for InputElementInfo
impl Sync for InputElementInfo
impl Unpin for InputElementInfo
impl UnsafeUnpin for InputElementInfo
impl UnwindSafe for InputElementInfo
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