Trait glin::buffer::TypedBufferMut[][src]

pub trait TypedBufferMut<T>: TypedBuffer<T> {
    unsafe fn with_map_write<F: Fn(&mut [T])>(
        &mut self,
        flags: MapWriteFlags,
        f: F
    ) -> Result<()>
    where
        Self: Sized
;
fn with_map_read_write<F: Fn(&mut [T])>(
        &mut self,
        flags: MapReadWriteFlags,
        f: F
    ) -> Result<()>
    where
        Self: Sized
; }

Buffer object with a type

Required methods

unsafe fn with_map_write<F: Fn(&mut [T])>(
    &mut self,
    flags: MapWriteFlags,
    f: F
) -> Result<()> where
    Self: Sized
[src]

Maps a buffer object’s data store

Pass a closure that receives the mapped buffer to access it

This method is unsafe cause reading from mapped slice would have undefined behaviour

see glMapBuffer

fn with_map_read_write<F: Fn(&mut [T])>(
    &mut self,
    flags: MapReadWriteFlags,
    f: F
) -> Result<()> where
    Self: Sized
[src]

Maps a buffer object’s data store

Pass a closure that receives the mapped buffer to access it

see glMapBuffer

Loading content...

Implementors

impl<'a, T: 'static> TypedBufferMut<T> for Buffer<T>[src]

impl<'a, T: 'static> TypedBufferMut<T> for BufferStorage<T>[src]

impl<'a, T: 'static> TypedBufferMut<T> for SharedBuffer<T>[src]

impl<'a, T: 'static> TypedBufferMut<T> for SharedBufferStorage<T>[src]

impl<'a, T: 'static, B: TypedBuffer<T> + WithMapRangeMut<T> + WithBackend, BB: BorrowMut<B>> TypedBufferMut<T> for Range<T, B, BB>[src]

Loading content...