Trait rin::gl::buffer::Backend[][src]

pub trait Backend: Debug {
    pub fn id(&self) -> u32;
pub fn bind(&self, target: u32);
pub fn unbind(&self, target: u32);
pub unsafe fn load(&mut self, data: *const c_void, len: usize, usage: u32);
pub unsafe fn load_target(
        &mut self,
        data: *const c_void,
        len: usize,
        usage: u32,
        target: u32
    );
pub unsafe fn update(
        &mut self,
        data: *const c_void,
        len: usize,
        offset: usize
    );
pub unsafe fn unmap(&self);
pub unsafe fn map_range(
        &self,
        offset: isize,
        length: isize,
        flags: u32
    ) -> *const c_void;
pub fn copy_to(
        &self,
        dst: &mut dyn Backend,
        read_offset: usize,
        write_offset: usize,
        size: usize
    );
pub unsafe fn get_parameter_iv(
        &self,
        parameter: u32,
        len: usize
    ) -> Vec<i32, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
; }

Required methods

pub fn id(&self) -> u32[src]

pub fn bind(&self, target: u32)[src]

pub fn unbind(&self, target: u32)[src]

pub unsafe fn load(&mut self, data: *const c_void, len: usize, usage: u32)[src]

pub unsafe fn load_target(
    &mut self,
    data: *const c_void,
    len: usize,
    usage: u32,
    target: u32
)
[src]

pub unsafe fn update(&mut self, data: *const c_void, len: usize, offset: usize)[src]

pub unsafe fn unmap(&self)[src]

pub unsafe fn map_range(
    &self,
    offset: isize,
    length: isize,
    flags: u32
) -> *const c_void
[src]

pub fn copy_to(
    &self,
    dst: &mut dyn Backend,
    read_offset: usize,
    write_offset: usize,
    size: usize
)
[src]

pub unsafe fn get_parameter_iv(
    &self,
    parameter: u32,
    len: usize
) -> Vec<i32, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

Loading content...

Implementors

Loading content...