[−][src]Struct rendy_mesh::Mesh
Single mesh is a collection of buffers that provides available attributes. Exactly one mesh is used per drawing call in common.
Methods
impl<B> Mesh<B> where
B: Backend,
[src]
B: Backend,
pub fn builder<'a>() -> MeshBuilder<'a>
[src]
Build new mesh with MeshBuilder
pub fn primitive(&self) -> Primitive
[src]
gfx_hal::Primitive type of the Mesh
pub fn len(&self) -> u32
[src]
Get number of vertices in mesh.
pub fn bind<'a, C>(
&'a self,
formats: &[VertexFormat],
encoder: &mut EncoderCommon<B, C>
) -> Result<u32, Incompatible> where
C: Supports<Graphics>,
[src]
&'a self,
formats: &[VertexFormat],
encoder: &mut EncoderCommon<B, C>
) -> Result<u32, Incompatible> where
C: Supports<Graphics>,
Bind buffers to specified attribute locations.
Trait Implementations
Auto Trait Implementations
impl<B> Send for Mesh<B> where
<B as Backend>::Buffer: Send + Sync,
<B as Backend>::Buffer: Send + Sync,
impl<B> Sync for Mesh<B> where
<B as Backend>::Buffer: Send + Sync,
<B as Backend>::Buffer: Send + Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,