[−][src]Struct mallumo_gls::buffer::ImmutableBuffer
Methods
impl ImmutableBuffer
[src]
pub fn new<T>(data: &[T]) -> Result<ImmutableBuffer, Error>
[src]
Creates new buffer and copies data
to its memory on GPU
Errors
- BufferCreationError(GL_OUT_OF_MEMORY) - if the buffer cannot be created
Trait Implementations
impl Buffer for ImmutableBuffer
[src]
fn get_id(&self) -> BufferId
[src]
fn bind_base(&self, target: BufferBaseTarget, index: usize) -> Result<(), Error>
[src]
fn bind_range(
&self,
target: BufferBaseTarget,
index: usize,
offset: usize,
size: usize
) -> Result<(), Error>
[src]
&self,
target: BufferBaseTarget,
index: usize,
offset: usize,
size: usize
) -> Result<(), Error>
fn bind_as_indirect(&self) -> Result<(), Error>
[src]
impl Drop for ImmutableBuffer
[src]
impl Debug for ImmutableBuffer
[src]
Auto Trait Implementations
impl Send for ImmutableBuffer
impl Sync for ImmutableBuffer
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,