Trait glsl_layout::Uniform
source · pub trait Uniform: Copy {
type Align: Copy + Default;
type Std140: Std140;
fn std140(&self) -> Self::Std140;
}
Expand description
Structure to transform data from rust’s structure to the raw data ready to upload to UBO.
Users should prefer to use derive(Uniform)
instead of implementing this manually.