Struct gfx_hal::pso::InputAssemblerDesc
source · [−]pub struct InputAssemblerDesc {
pub primitive: Primitive,
pub with_adjacency: bool,
pub restart_index: Option<IndexType>,
}
Expand description
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
Trait Implementations
sourceimpl Clone for InputAssemblerDesc
impl Clone for InputAssemblerDesc
sourcefn clone(&self) -> InputAssemblerDesc
fn clone(&self) -> InputAssemblerDesc
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 more
sourceimpl Debug for InputAssemblerDesc
impl Debug for InputAssemblerDesc
sourceimpl Ord for InputAssemblerDesc
impl Ord for InputAssemblerDesc
sourceimpl PartialEq<InputAssemblerDesc> for InputAssemblerDesc
impl PartialEq<InputAssemblerDesc> for InputAssemblerDesc
sourcefn eq(&self, other: &InputAssemblerDesc) -> bool
fn eq(&self, other: &InputAssemblerDesc) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InputAssemblerDesc) -> bool
fn ne(&self, other: &InputAssemblerDesc) -> bool
This method tests for !=
.
sourceimpl PartialOrd<InputAssemblerDesc> for InputAssemblerDesc
impl PartialOrd<InputAssemblerDesc> for InputAssemblerDesc
sourcefn partial_cmp(&self, other: &InputAssemblerDesc) -> Option<Ordering>
fn partial_cmp(&self, other: &InputAssemblerDesc) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for InputAssemblerDesc
impl StructuralEq for InputAssemblerDesc
impl StructuralPartialEq for InputAssemblerDesc
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more