Trait gfx::IntoIndexBuffer
[−]
[src]
pub trait IntoIndexBuffer<R: Resources> {
fn into_index_buffer<F: Factory<R> + ?Sized>(self, factory: &mut F) -> IndexBuffer<R>;
}A helper trait to create IndexBuffers from different kinds of data.
Required Methods
fn into_index_buffer<F: Factory<R> + ?Sized>(self, factory: &mut F) -> IndexBuffer<R>
Turns self into an IndexBuffer.
Implementors
impl<R: Resources> IntoIndexBuffer<R> for IndexBuffer<R>impl<R: Resources> IntoIndexBuffer<R> for ()impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u16>impl<'s, R: Resources> IntoIndexBuffer<R> for &'s [u16]impl<R: Resources> IntoIndexBuffer<R> for Buffer<R, u32>impl<'s, R: Resources> IntoIndexBuffer<R> for &'s [u32]