[−][src]Enum processing::index::IndicesSource
Describes a source of indices used for drawing.
Variants
IndexBuffer
A buffer uploaded in video memory.
Fields of IndexBuffer
buffer: BufferAnySlice<'a>
The buffer.
data_type: IndexType
Type of indices in the buffer.
primitives: PrimitiveType
Type of primitives contained in the vertex source.
MultidrawArray
Use a multidraw indirect buffer without indices.
Fields of MultidrawArray
buffer: BufferAnySlice<'a>
The buffer.
primitives: PrimitiveType
Type of primitives contained in the vertex source.
MultidrawElement
Use a multidraw indirect buffer with indices.
Fields of MultidrawElement
commands: BufferAnySlice<'a>
The buffer of the commands.
indices: BufferAnySlice<'a>
The buffer of the indices.
data_type: IndexType
Type of indices in the buffer.
primitives: PrimitiveType
Type of primitives contained in the vertex source.
NoIndices
Don't use indices. Assemble primitives by using the order in which the vertices are in the vertices source.
Fields of NoIndices
primitives: PrimitiveType
Type of primitives contained in the vertex source.
Methods
impl<'a> IndicesSource<'a>
[src]
pub fn get_primitives_type(&self) -> PrimitiveType
[src]
Returns the type of the primitives.
Trait Implementations
impl<'a> Clone for IndicesSource<'a>
[src]
fn clone(&self) -> IndicesSource<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, T> From<IndexBufferSlice<'a, T>> for IndicesSource<'a> where
T: Index,
[src]
T: Index,
fn from(buf: IndexBufferSlice<'a, T>) -> IndicesSource<'a>
[src]
impl<'a, 'b> From<&'b NoIndices> for IndicesSource<'a>
[src]
fn from(marker: &'b NoIndices) -> IndicesSource<'a>
[src]
impl<'a, 'r, T> From<&'r IndexBufferSlice<'a, T>> for IndicesSource<'a> where
T: Index,
[src]
T: Index,
fn from(buf: &'r IndexBufferSlice<'a, T>) -> IndicesSource<'a>
[src]
impl<'a> From<NoIndices> for IndicesSource<'a>
[src]
fn from(marker: NoIndices) -> IndicesSource<'a>
[src]
impl<'a> From<&'a IndexBufferAny> for IndicesSource<'a>
[src]
fn from(buf: &'a IndexBufferAny) -> IndicesSource<'a>
[src]
impl<'a, T> From<&'a IndexBuffer<T>> for IndicesSource<'a> where
T: Index,
[src]
T: Index,
fn from(buf: &'a IndexBuffer<T>) -> IndicesSource<'a>
[src]
Auto Trait Implementations
impl<'a> !Send for IndicesSource<'a>
impl<'a> !Sync for IndicesSource<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.