Struct gfx::device::handle::IndexBuffer
[−]
[src]
pub struct IndexBuffer<R: Resources, T> { // some fields omitted }
Type-safe index buffer handle
Methods
impl<R: Resources, T> IndexBuffer<R, T>
fn from_raw(handle: RawBuffer<R>) -> IndexBuffer<R, T>
Create a type-safe IndexBuffer from a RawBuffer
fn raw(&self) -> &RawBuffer<R>
Get the underlying raw Handle
fn get_info(&self) -> &BufferInfo
Get the associated information about the buffer
fn len(&self) -> usize
Get the number of elements in the buffer.
Fails if T
is zero-sized.