[][src]Struct rendy_core::hal::pso::InputAssemblerDesc

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: Primitive

Type of the primitive

with_adjacency: bool

When 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

impl InputAssemblerDesc[src]

pub fn new(primitive: Primitive) -> InputAssemblerDesc[src]

Create a new IA descriptor without primitive restart or adjucency.

Trait Implementations

impl Clone for InputAssemblerDesc[src]

impl Debug for InputAssemblerDesc[src]

impl Eq for InputAssemblerDesc[src]

impl Ord for InputAssemblerDesc[src]

impl PartialEq<InputAssemblerDesc> for InputAssemblerDesc[src]

impl PartialOrd<InputAssemblerDesc> for InputAssemblerDesc[src]

impl StructuralEq for InputAssemblerDesc[src]

impl StructuralPartialEq for InputAssemblerDesc[src]

Auto Trait Implementations

impl RefUnwindSafe for InputAssemblerDesc

impl Send for InputAssemblerDesc

impl Sync for InputAssemblerDesc

impl Unpin for InputAssemblerDesc

impl UnwindSafe for InputAssemblerDesc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.