Enum vulkano::pipeline::input_assembly::PrimitiveTopology
source · pub enum PrimitiveTopology {
PointList,
LineList,
LineStrip,
TriangleList,
TriangleStrip,
TriangleFan,
LineListWithAdjacency,
LineStripWithAdjacency,
TriangleListWithAdjacency,
TriangleStripWithAdjacency,
PatchList {
vertices_per_patch: u32,
},
}
Expand description
Describes how vertices must be grouped together to form primitives.
Note that some topologies don’t support primitive restart.
Variants
PointList
LineList
LineStrip
TriangleList
TriangleStrip
TriangleFan
LineListWithAdjacency
LineStripWithAdjacency
TriangleListWithAdjacency
TriangleStripWithAdjacency
PatchList
Fields
vertices_per_patch: u32
Implementations
sourceimpl PrimitiveTopology
impl PrimitiveTopology
sourcepub fn supports_primitive_restart(&self) -> bool
pub fn supports_primitive_restart(&self) -> bool
Returns true if this primitive topology supports using primitives restart.
Trait Implementations
sourceimpl Clone for PrimitiveTopology
impl Clone for PrimitiveTopology
sourcefn clone(&self) -> PrimitiveTopology
fn clone(&self) -> PrimitiveTopology
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PrimitiveTopology
impl Debug for PrimitiveTopology
sourceimpl Into<u32> for PrimitiveTopology
impl Into<u32> for PrimitiveTopology
sourcefn into(self) -> PrimitiveTopology
fn into(self) -> PrimitiveTopology
Converts this type into the (usually inferred) input type.
sourceimpl PartialEq<PrimitiveTopology> for PrimitiveTopology
impl PartialEq<PrimitiveTopology> for PrimitiveTopology
sourcefn eq(&self, other: &PrimitiveTopology) -> bool
fn eq(&self, other: &PrimitiveTopology) -> bool
impl Copy for PrimitiveTopology
impl Eq for PrimitiveTopology
impl StructuralEq for PrimitiveTopology
impl StructuralPartialEq for PrimitiveTopology
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveTopology
impl Send for PrimitiveTopology
impl Sync for PrimitiveTopology
impl Unpin for PrimitiveTopology
impl UnwindSafe for PrimitiveTopology
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.