Struct mallumo_gls::buffer::ImmutableBuffer
[−]
[src]
pub struct ImmutableBuffer { /* fields omitted */ }
Methods
impl ImmutableBuffer
[src]
fn new<T>(data: &[T]) -> Result<ImmutableBuffer, Error>
Creates new buffer and copies data
to its memory on GPU
Errors
- BufferCreationError(GL_OUT_OF_MEMORY) - if the buffer cannot be created