Struct glium::buffer::BufferViewAnySlice
[−]
[src]
pub struct BufferViewAnySlice<'a> { // some fields omitted }
Slice of a Buffer
without any type info.
Methods
impl<'a> BufferAnySlice<'a>
fn get_size(&self) -> usize
Returns the number of bytes in this slice.
fn get_elements_size(&self) -> usize
Returns the size in bytes of each element in the buffer.
fn get_elements_count(&self) -> usize
Returns the number of elements in the buffer.
fn invalidate(&self)
Invalidates the content of the slice. The data becomes undefined.
This operation is a no-op if the backend doesn't support it and for persistent-mapped buffers.
fn get_context(&self) -> &Rc<Context>
Returns the context corresponding to this buffer.