#[repr(transparent)]pub struct InputElementDesc<'a>(pub D3D12_INPUT_ELEMENT_DESC, _);
Expand description
Wrapper around D3D12_INPUT_ELEMENT_DESC structure
Tuple Fields§
§0: D3D12_INPUT_ELEMENT_DESC
Implementations§
Source§impl<'a> InputElementDesc<'a>
impl<'a> InputElementDesc<'a>
pub fn set_semantic_name( &mut self, name: &'a str, ) -> Result<&mut Self, NulError>
pub fn with_semantic_name(self, name: &'a str) -> Result<Self, NulError>
pub fn semantic_name(&self) -> Result<&'a str, Utf8Error>
pub fn set_semantic_index(&mut self, semantic_index: u32) -> &mut Self
pub fn with_semantic_index(self, semantic_index: u32) -> Self
pub fn semantic_index(&self) -> u32
pub fn set_format(&mut self, format: Format) -> &mut Self
pub fn with_format(self, format: Format) -> Self
pub fn format(&self) -> Format
pub fn set_input_slot(&mut self, input_slot: u32) -> &mut Self
pub fn with_input_slot(self, input_slot: u32) -> Self
pub fn input_slot(&self) -> u32
pub fn set_aligned_byte_offset( &mut self, aligned_byte_offset: ByteCount, ) -> &mut Self
pub fn with_aligned_byte_offset(self, aligned_byte_offset: ByteCount) -> Self
pub fn aligned_byte_offset(&self) -> ByteCount
pub fn set_input_slot_class( &mut self, input_slot_class: InputClassification, ) -> &mut Self
pub fn with_input_slot_class( self, input_slot_class: InputClassification, ) -> Self
pub fn input_slot_class(&self) -> InputClassification
pub fn set_instance_data_step_rate( &mut self, instance_data_step_rate: u32, ) -> &mut Self
pub fn with_instance_data_step_rate(self, instance_data_step_rate: u32) -> Self
pub fn instance_data_step_rate(&self) -> u32
Trait Implementations§
Source§impl<'a> Debug for InputElementDesc<'a>
impl<'a> Debug for InputElementDesc<'a>
Source§impl<'a> Default for InputElementDesc<'a>
impl<'a> Default for InputElementDesc<'a>
Source§fn default() -> InputElementDesc<'a>
fn default() -> InputElementDesc<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Drop for InputElementDesc<'a>
impl<'a> Drop for InputElementDesc<'a>
Source§impl<'a> Hash for InputElementDesc<'a>
impl<'a> Hash for InputElementDesc<'a>
Source§impl<'a> Ord for InputElementDesc<'a>
impl<'a> Ord for InputElementDesc<'a>
Source§fn cmp(&self, other: &InputElementDesc<'a>) -> Ordering
fn cmp(&self, other: &InputElementDesc<'a>) -> Ordering
1.21.0 · 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
Source§impl<'a> PartialEq for InputElementDesc<'a>
impl<'a> PartialEq for InputElementDesc<'a>
Source§impl<'a> PartialOrd for InputElementDesc<'a>
impl<'a> PartialOrd for InputElementDesc<'a>
impl<'a> Eq for InputElementDesc<'a>
impl<'a> StructuralPartialEq for InputElementDesc<'a>
Auto Trait Implementations§
impl<'a> Freeze for InputElementDesc<'a>
impl<'a> RefUnwindSafe for InputElementDesc<'a>
impl<'a> !Send for InputElementDesc<'a>
impl<'a> !Sync for InputElementDesc<'a>
impl<'a> Unpin for InputElementDesc<'a>
impl<'a> UnwindSafe for InputElementDesc<'a>
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