Struct thindx::d3d::PrimitiveType
source · [−]#[repr(transparent)]pub struct PrimitiveType(_);
Expand description
[docs.microsoft.com] D3DPRIMITIVETYPE
Defines the primitives supported by Direct3D.
Using Triangle Strips or Triangle Fans (Direct3D 9) is often more efficient than using triangle lists because fewer vertices are duplicated.
Implementations
Renders the vertices as a collection of isolated points. This value is unsupported for indexed primitives.
Renders the vertices as a list of isolated straight line segments.
Renders the vertices as a single polyline.
Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle.
Back-face culling is affected by the current winding-order render state.
Renders the vertices as a triangle strip. The backface-culling flag is automatically flipped on even-numbered triangles.
Renders the vertices as a triangle fan.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
Blanket Implementations
Mutably borrows from an owned value. Read more