[][src]Struct mutiny::renderer::resources::LightingUBO

pub struct LightingUBO {
    pub ubo: Buffer<u8>,
    pub dirty: bool,
}

Fields

Methods from Deref<Target = Buffer<u8>>

Loads the passed data into the buffer (re)allocating it

see: gl(Named)BufferData

Loads the passed data at the beginning of the buffer

Will panic if the buffer is not big enough or not allocated at all

see: gl(Named)BufferSubData

Maps a buffer object's data store

Pass a closure that receives the mapped buffer to access it

see glMapBuffer

Maps a buffer object's data store

Pass a closure that receives the mapped buffer to access it

see glMapBuffer

Maps a buffer object's data store

Pass a closure that receives the mapped buffer to access it

see glMapBuffer

Copy one buffer into another

Number of elements on the last update

If there's no elements loaded in the buffer

This is len == 0 not capacity == 0

Allocated capacity of the buffer in number of elements

Total bytes on the last update

Total capcacity of the buffer in bytes

OpenGL id

Stride of the buffer type

Get a range from the buffer

Useful to do operations on portions of the buffer

Panics if the range is out of bounds

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 LightingUBO
[src]

The resulting type after dereferencing.

impl DerefMut for LightingUBO
[src]

Auto Trait Implementations

impl !Send for LightingUBO

impl !Sync for LightingUBO

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<T> Same for T
[src]

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<B, P> IntoControlBuilder for P where
    B: BuilderFromProperty<P>, 
[src]

impl<T, U> IntoDuration for T where
    U: FromDuration<T>, 
[src]