Trait luminance_std140::Std140 [−][src]
pub trait Std140: Copy {
type Encoded: Copy;
fn std140_encode(self) -> Self::Encoded;
fn std140_decode(encoded: Self::Encoded) -> Self;
}
Expand description
Types that have a std140
representation.
This trait allows to encode types into their std140
representation but also decode such representation into the
proper type.
Associated Types
Required methods
fn std140_encode(self) -> Self::Encoded
fn std140_encode(self) -> Self::Encoded
Encode the value into its std140
representation.
fn std140_decode(encoded: Self::Encoded) -> Self
fn std140_decode(encoded: Self::Encoded) -> Self
Decode a value from its std140
representation.