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>ⓘ; }
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]
&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)
[src]
pub unsafe fn unmap(&self)
[src]
pub unsafe fn map_range(
&self,
offset: isize,
length: isize,
flags: u32
) -> *const c_void
[src]
&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
)
[src]
&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>ⓘ
[src]
&self,
parameter: u32,
len: usize
) -> Vec<i32, Global>ⓘ