Trait gfx::render::mesh::ToSlice
[−]
[src]
pub trait ToSlice<R: Resources> { fn to_slice(&self, pt: PrimitiveType) -> Slice<R>; }
Helper methods for cleanly getting the slice of a type.
Required Methods
fn to_slice(&self, pt: PrimitiveType) -> Slice<R>
Get the slice of a type.
Implementors
impl<R: Resources> ToSlice<R> for Mesh<R>
impl<R: Resources> ToSlice<R> for IndexBuffer<R, u8>
impl<R: Resources> ToSlice<R> for IndexBuffer<R, u16>
impl<R: Resources> ToSlice<R> for IndexBuffer<R, u32>