pub struct DrawIndexedArgs { /* private fields */ }Expand description
The five arguments of an indexed draw, as one value.
drawIndexed and drawIndexedOffset take these as five positional
arguments today, with no named parameter in between to keep them in
order and no way to leave a trailing one at its default. Grouping them
makes the call self-documenting and lets a caller vary one of the five
without restating the other four.
Implementations§
Source§impl DrawIndexedArgs
Named constructors for the draw-argument structs.
impl DrawIndexedArgs
Named constructors for the draw-argument structs.
Source§impl DrawIndexedArgs
impl DrawIndexedArgs
pub fn get_index_count(&self) -> u32
pub fn get_mut_index_count(&mut self) -> &mut u32
pub fn set_index_count(&mut self, val: u32) -> &mut Self
pub fn get_instance_count(&self) -> u32
pub fn get_mut_instance_count(&mut self) -> &mut u32
pub fn set_instance_count(&mut self, val: u32) -> &mut Self
pub fn get_first_index(&self) -> u32
pub fn get_mut_first_index(&mut self) -> &mut u32
pub fn set_first_index(&mut self, val: u32) -> &mut Self
pub fn get_base_vertex(&self) -> i32
pub fn get_mut_base_vertex(&mut self) -> &mut i32
pub fn set_base_vertex(&mut self, val: i32) -> &mut Self
pub fn get_first_instance(&self) -> u32
pub fn get_mut_first_instance(&mut self) -> &mut u32
pub fn set_first_instance(&mut self, val: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for DrawIndexedArgs
impl Clone for DrawIndexedArgs
impl Copy for DrawIndexedArgs
Auto Trait Implementations§
impl Freeze for DrawIndexedArgs
impl RefUnwindSafe for DrawIndexedArgs
impl Send for DrawIndexedArgs
impl Sync for DrawIndexedArgs
impl Unpin for DrawIndexedArgs
impl UnsafeUnpin for DrawIndexedArgs
impl UnwindSafe for DrawIndexedArgs
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