Enum vulkano::pipeline::graphics::input_assembly::PrimitiveTopology [−][src]
#[repr(i32)]
pub enum PrimitiveTopology {
PointList,
LineList,
LineStrip,
TriangleList,
TriangleStrip,
TriangleFan,
LineListWithAdjacency,
LineStripWithAdjacency,
TriangleListWithAdjacency,
TriangleStripWithAdjacency,
PatchList,
}
Expand description
Describes how vertices must be grouped together to form primitives.
When enabling primitive restart, “list” topologies require a feature to be enabled on the device:
- The
PatchList
topology requires theprimitive_topology_patch_list_restart
feature. - All other “list” topologies require the
primitive_topology_list_restart
feature.
Variants
PointList
A series of separate point primitives.
LineList
A series of separate line primitives.
LineStrip
A series of consecutive line primitives, with consecutive lines sharing a vertex.
TriangleList
A series of separate triangle primitives.
TriangleStrip
A series of consecutive triangle primitives, with consecutive triangles sharing an edge (two vertices).
TriangleFan
A series of consecutive triangle primitives, with all triangles sharing a common vertex (the first).
LineListWithAdjacency
As LineList, but with adjacency, used in combination with geometry shaders. Requires the [
geometry_shader`](crate::device::Features::geometry_shader) feature.
LineStripWithAdjacency
As LineStrip
, but with adjacency, used in combination with geometry shaders. Requires the
geometry_shader
feature.
TriangleListWithAdjacency
As TriangleList
, but with adjacency, used in combination with geometry shaders. Requires
the geometry_shader
feature.
TriangleStripWithAdjacency
As TriangleStrip
, but with adjacency, used in combination with geometry shaders. Requires
the geometry_shader
feature.
PatchList
Separate patch primitives, used in combination with tessellation shaders. Requires the
tessellation_shader
feature.
Implementations
Returns the topology class of this topology.
Trait Implementations
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.