Enum nannou::ui::backend::glium::glium::vertex::VerticesSource [−][src]
pub enum VerticesSource<'a> { VertexBuffer(BufferAnySlice<'a>, &'a Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>, bool), Marker { len: usize, per_instance: bool, }, }
Describes the source to use for the vertices when drawing.
Variants
VertexBuffer(BufferAnySlice<'a>, &'a Cow<'static, [(Cow<'static, str>, usize, AttributeType, bool)]>, bool)
A buffer uploaded in the video memory.
The second parameter is the number of vertices in the buffer.
The third parameter tells whether or not this buffer is "per instance" (true) or "per vertex" (false).
Marker
A marker indicating a "phantom list of attributes".
Fields of Marker
len: usize | Number of attributes. |
per_instance: bool | Whether or not this buffer is "per instance" (true) or "per vertex" (false). |
Trait Implementations
impl<'a> Clone for VerticesSource<'a>
[src]
impl<'a> Clone for VerticesSource<'a>
fn clone(&self) -> VerticesSource<'a>
[src]
fn clone(&self) -> VerticesSource<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Into<VerticesSource<'a>> for EmptyInstanceAttributes
[src]
impl<'a> Into<VerticesSource<'a>> for EmptyInstanceAttributes
fn into(self) -> VerticesSource<'a>
[src]
fn into(self) -> VerticesSource<'a>
Performs the conversion.
impl<'a> Into<VerticesSource<'a>> for &'a VertexBufferAny
[src]
impl<'a> Into<VerticesSource<'a>> for &'a VertexBufferAny
fn into(self) -> VerticesSource<'a>
[src]
fn into(self) -> VerticesSource<'a>
Performs the conversion.
impl<'a, T> Into<VerticesSource<'a>> for VertexBufferSlice<'a, T> where
T: Copy,
[src]
impl<'a, T> Into<VerticesSource<'a>> for VertexBufferSlice<'a, T> where
T: Copy,
fn into(self) -> VerticesSource<'a>
[src]
fn into(self) -> VerticesSource<'a>
Performs the conversion.
impl<'a, T> Into<VerticesSource<'a>> for &'a VertexBuffer<T> where
T: Copy,
[src]
impl<'a, T> Into<VerticesSource<'a>> for &'a VertexBuffer<T> where
T: Copy,
fn into(self) -> VerticesSource<'a>
[src]
fn into(self) -> VerticesSource<'a>
Performs the conversion.
impl<'a> Into<VerticesSource<'a>> for EmptyVertexAttributes
[src]
impl<'a> Into<VerticesSource<'a>> for EmptyVertexAttributes
fn into(self) -> VerticesSource<'a>
[src]
fn into(self) -> VerticesSource<'a>
Performs the conversion.
impl<'a> Into<VerticesSource<'a>> for PerInstance<'a>
[src]
impl<'a> Into<VerticesSource<'a>> for PerInstance<'a>
fn into(self) -> VerticesSource<'a>
[src]
fn into(self) -> VerticesSource<'a>
Performs the conversion.
Auto Trait Implementations
impl<'a> !Send for VerticesSource<'a>
impl<'a> !Send for VerticesSource<'a>
impl<'a> !Sync for VerticesSource<'a>
impl<'a> !Sync for VerticesSource<'a>