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

Encode the value into its std140 representation.

Decode a value from its std140 representation.

Implementations on Foreign Types

Implementors