Struct gfx::device::handle::Buffer
[−]
[src]
pub struct Buffer<R: Resources, T> { // some fields omitted }
Type-safe buffer handle
Methods
impl<R: Resources, T> Buffer<R, T>
fn from_raw(handle: RawBuffer<R>) -> Buffer<R, T>
Create a type-safe Buffer from a RawBuffer
fn cast<U>(self) -> Buffer<R, U>
Cast the type this Buffer references
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.