Struct gfx_hal::pso::InputAssemblerDesc [−][src]
pub struct InputAssemblerDesc {
pub primitive: Primitive,
pub with_adjacency: bool,
pub restart_index: Option<IndexType>,
}All the information needed to create an input assembler.
Fields
primitive: PrimitiveType of the primitive
with_adjacency: boolWhen adjacency information is enabled, every even-numbered vertex (every other starting from the first) represents an additional vertex for the primitive, while odd-numbered vertices (every other starting from the second) represent adjacent vertices.
For example, with [a, b, c, d, e, f, g, h], [a, c, e, g] form a triangle strip, and [b, d, f, h] are the adjacent vertices, where b, d,
and f are adjacent to the first triangle in the strip, and d, f, and h are adjacent
to the second.
restart_index: Option<IndexType>Describes whether or not primitive restart is supported for an input assembler. Primitive restart is a feature that allows a mark to be placed in an index buffer where it is is “broken” into multiple pieces of geometry.
See https://www.khronos.org/opengl/wiki/Vertex_Rendering#Primitive_Restart for more detail.
Implementations
Trait Implementations
impl Clone for InputAssemblerDesc[src]
impl Clone for InputAssemblerDesc[src]fn clone(&self) -> InputAssemblerDesc[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Eq for InputAssemblerDesc[src]
impl Eq for InputAssemblerDesc[src]impl Ord for InputAssemblerDesc[src]
impl Ord for InputAssemblerDesc[src]impl PartialEq<InputAssemblerDesc> for InputAssemblerDesc[src]
impl PartialEq<InputAssemblerDesc> for InputAssemblerDesc[src]fn eq(&self, other: &InputAssemblerDesc) -> bool[src]
fn ne(&self, other: &InputAssemblerDesc) -> bool[src]
impl PartialOrd<InputAssemblerDesc> for InputAssemblerDesc[src]
impl PartialOrd<InputAssemblerDesc> for InputAssemblerDesc[src]fn partial_cmp(&self, other: &InputAssemblerDesc) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for InputAssemblerDesc[src]
impl StructuralEq for InputAssemblerDesc[src]Auto Trait Implementations
impl RefUnwindSafe for InputAssemblerDesc
impl RefUnwindSafe for InputAssemblerDescimpl Send for InputAssemblerDesc
impl Send for InputAssemblerDescimpl Sync for InputAssemblerDesc
impl Sync for InputAssemblerDescimpl Unpin for InputAssemblerDesc
impl Unpin for InputAssemblerDescimpl UnwindSafe for InputAssemblerDesc
impl UnwindSafe for InputAssemblerDesc