pub struct UniformStorage<H = NoUniformBinder, C = Option<()>, S = Box<[u8]>>where
    S: Deref<Target = [u8]> + DerefMut,
{ /* private fields */ }
Expand description

A helper to bind uniform variables to UBO or Push Constant Buffers.

Implementations§

Access the backing storage for the UBO.

Bind a scalar to the given offset.

Create a new UniformStorage with the given backing storage

Create a new UniformStorage with the given size for UBO and Push Constant Buffer sizes.

Bind a vec4 to the given offset.

Bind a mat4 to the given offset.

Trait Implementations§

Get a pointer to the backing UBO storage. This pointer must be valid for the lifetime of the implementing struct.
Get a pointer to the backing UBO storage. This pointer must be valid for the lifetime of the implementing struct.
Get a pointer to the backing Push Constant buffer storage. This pointer must be valid for the lifetime of the implementing struct.
Get a slice to the backing Push Constant buffer storage. This pointer must be valid for the lifetime of the implementing struct.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.