#[repr(i32)]pub enum PrimitiveTopology {
Undefined = 0,
Point = 1,
Line = 2,
Triangle = 4,
}Expand description
Values that indicate how the pipeline interprets vertex data that is bound to the input-assembler stage. These primitive topology values determine how the vertex data is rendered on screen.
For more information: D3D_PRIMITIVE_TOPOLOGY enumeration
Variants§
Undefined = 0
The IA stage has not been initialized with a primitive topology. The IA stage will not function properly unless a primitive topology is defined.
Point = 1
Interpret the vertex data as a list of points.
Line = 2
Interpret the vertex data as a list of lines.
Triangle = 4
Interpret the vertex data as a list of triangles.
Implementations§
Trait Implementations§
Source§impl Clone for PrimitiveTopology
impl Clone for PrimitiveTopology
Source§fn clone(&self) -> PrimitiveTopology
fn clone(&self) -> PrimitiveTopology
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimitiveTopology
impl Debug for PrimitiveTopology
Source§impl Default for PrimitiveTopology
impl Default for PrimitiveTopology
Source§fn default() -> PrimitiveTopology
fn default() -> PrimitiveTopology
Returns the “default value” for a type. Read more
Source§impl From<D3D_PRIMITIVE_TOPOLOGY> for PrimitiveTopology
impl From<D3D_PRIMITIVE_TOPOLOGY> for PrimitiveTopology
Source§impl Hash for PrimitiveTopology
impl Hash for PrimitiveTopology
Source§impl PartialEq for PrimitiveTopology
impl PartialEq for PrimitiveTopology
impl Copy for PrimitiveTopology
impl Eq for PrimitiveTopology
impl StructuralPartialEq for PrimitiveTopology
Auto Trait Implementations§
impl Freeze for PrimitiveTopology
impl RefUnwindSafe for PrimitiveTopology
impl Send for PrimitiveTopology
impl Sync for PrimitiveTopology
impl Unpin for PrimitiveTopology
impl UnwindSafe for PrimitiveTopology
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