Struct tea::buffer::UniformBuffer
source · pub struct UniformBuffer(_);Implementations§
source§impl UniformBuffer
impl UniformBuffer
Trait Implementations§
source§impl Debug for UniformBuffer
impl Debug for UniformBuffer
source§impl Default for UniformBuffer
impl Default for UniformBuffer
source§fn default() -> UniformBuffer
fn default() -> UniformBuffer
Returns the “default value” for a type. Read more
source§impl Drop for UniformBuffer
impl Drop for UniformBuffer
source§impl GlBuffer for UniformBuffer
impl GlBuffer for UniformBuffer
fn data<T: Sized>(&self, data: &Vec<T>, usage: BufferUsage)
fn subdata<T: Sized>(&self, offset: isize, count: usize, data: &Vec<T>)
fn bind_read(&self)
fn bind_write(&self)
fn copy(&self, read_offset: isize, write_offset: isize, size: isize)
fn copy_from( &self, other: impl GlBuffer, read_offset: isize, write_offset: isize, size: isize )
fn is_binded(&self) -> bool
source§impl GlTarget for UniformBuffer
impl GlTarget for UniformBuffer
source§impl Ord for UniformBuffer
impl Ord for UniformBuffer
source§fn cmp(&self, other: &UniformBuffer) -> Ordering
fn cmp(&self, other: &UniformBuffer) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UniformBuffer> for UniformBuffer
impl PartialEq<UniformBuffer> for UniformBuffer
source§fn eq(&self, other: &UniformBuffer) -> bool
fn eq(&self, other: &UniformBuffer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<UniformBuffer> for UniformBuffer
impl PartialOrd<UniformBuffer> for UniformBuffer
source§fn partial_cmp(&self, other: &UniformBuffer) -> Option<Ordering>
fn partial_cmp(&self, other: &UniformBuffer) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for UniformBuffer
impl StructuralEq for UniformBuffer
impl StructuralPartialEq for UniformBuffer
Auto Trait Implementations§
impl RefUnwindSafe for UniformBuffer
impl Send for UniformBuffer
impl Sync for UniformBuffer
impl Unpin for UniformBuffer
impl UnwindSafe for UniformBuffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more