[−][src]Struct gfx_hal::pso::InputAssemblerDesc
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.
Methods
impl InputAssemblerDesc
[src]
pub fn new(primitive: Primitive) -> Self
[src]
Create a new IA descriptor without primitive restart or adjucency.
Trait Implementations
impl Clone for InputAssemblerDesc
[src]
fn clone(&self) -> InputAssemblerDesc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InputAssemblerDesc
[src]
impl Eq for InputAssemblerDesc
[src]
impl Ord for InputAssemblerDesc
[src]
fn cmp(&self, other: &InputAssemblerDesc) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[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]
fn partial_cmp(&self, other: &InputAssemblerDesc) -> Option<Ordering>
[src]
fn lt(&self, other: &InputAssemblerDesc) -> bool
[src]
fn le(&self, other: &InputAssemblerDesc) -> bool
[src]
fn gt(&self, other: &InputAssemblerDesc) -> bool
[src]
fn ge(&self, other: &InputAssemblerDesc) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,