pub struct PrimitiveState { /* private fields */ }Expand description
The pipeline’s primitive-assembly state: how vertices become triangles, and which of those triangles survive rasterization.
Implementations§
Source§impl PrimitiveState
impl PrimitiveState
pub fn get_topology(&self) -> PrimitiveTopology
pub fn get_mut_topology(&mut self) -> &mut PrimitiveTopology
pub fn set_topology(&mut self, val: PrimitiveTopology) -> &mut Self
pub fn get_front_face(&self) -> FrontFace
pub fn get_mut_front_face(&mut self) -> &mut FrontFace
pub fn set_front_face(&mut self, val: FrontFace) -> &mut Self
pub fn get_cull_mode(&self) -> CullMode
pub fn get_mut_cull_mode(&mut self) -> &mut CullMode
pub fn set_cull_mode(&mut self, val: CullMode) -> &mut Self
pub fn get_strip_index_format(&self) -> Option<IndexFormat>
pub fn try_get_strip_index_format(&self) -> Option<IndexFormat>
pub fn get_mut_strip_index_format(&mut self) -> &mut Option<IndexFormat>
pub fn set_strip_index_format(&mut self, val: Option<IndexFormat>) -> &mut Self
pub fn get_unclipped_depth(&self) -> bool
pub fn get_mut_unclipped_depth(&mut self) -> &mut bool
pub fn set_unclipped_depth(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for PrimitiveState
impl Clone for PrimitiveState
impl Copy for PrimitiveState
Source§impl Debug for PrimitiveState
impl Debug for PrimitiveState
Auto Trait Implementations§
impl Freeze for PrimitiveState
impl RefUnwindSafe for PrimitiveState
impl Send for PrimitiveState
impl Sync for PrimitiveState
impl Unpin for PrimitiveState
impl UnsafeUnpin for PrimitiveState
impl UnwindSafe for PrimitiveState
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