pub trait Uniform: Copy {
type Align: Copy + Default;
type Std140: Std140;
// Required method
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.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.