Struct rin::scene::renderer::resources::AllModelMatricesBuffer [−][src]
pub struct AllModelMatricesBuffer(pub SharedBuffer<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>);
Methods from Deref<Target = SharedBuffer<Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>>>
pub fn load(&mut self, data: &[T], usage: u32)
[src]
pub fn load_target(&mut self, data: &[T], usage: u32, target: u32)
[src]
Loads the passed data into the buffer (re)allocating it to an specific target
see: gl(Named)BufferData
pub fn reserve(&mut self, len: usize, usage: u32)
[src]
Reserves len amount of memory into the buffer (re)allocating it
see: gl(Named)BufferData
pub fn reserve_target(&mut self, len: usize, usage: u32, target: u32)
[src]
Reserves len amount of memory into the buffer (re)allocating it to an specific target
see: gl(Named)BufferData
pub fn update(&mut self, data: &[T])
[src]
pub fn with_map_read<F>(&self, flags: MapReadFlags, f: F) -> Result<(), Error> where
F: FnMut(&[T]),
[src]
F: FnMut(&[T]),
pub unsafe fn map_write<F>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
Unsafe cause reading from the mutable slice is undefined behaviour
pub fn map_read_write<F>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<(), Error> where
F: FnMut(&mut [T]),
pub fn copy_to<U, B>(&self, dst: &mut B) where
B: BufferRange<U> + WithBackendMut,
[src]
B: BufferRange<U> + WithBackendMut,
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn capacity(&self) -> usize
[src]
pub fn bytes(&self) -> usize
[src]
pub fn capacity_bytes(&self) -> usize
[src]
pub fn id(&self) -> u32
[src]
pub fn stride(&self) -> usize
[src]
pub fn range<R>(&self, range: R) -> Range<T, SharedBuffer<T>, SharedBuffer<T>> where
R: InputRange,
[src]
R: InputRange,
pub fn range_mut<R>(
&mut self,
range: R
) -> Range<T, SharedBuffer<T>, SharedBuffer<T>> where
R: InputRange,
[src]
&mut self,
range: R
) -> Range<T, SharedBuffer<T>, SharedBuffer<T>> where
R: InputRange,
Get a mutable range from the buffer
Useful to do operations on portions of the buffer
Panics if the range is out of bounds
Trait Implementations
impl Deref for AllModelMatricesBuffer
[src]
impl Deref for AllModelMatricesBuffer
[src]Auto Trait Implementations
impl !RefUnwindSafe for AllModelMatricesBuffer
impl !Send for AllModelMatricesBuffer
impl !Sync for AllModelMatricesBuffer
impl Unpin for AllModelMatricesBuffer
impl !UnwindSafe for AllModelMatricesBuffer
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]