glsl_layout

Type Alias float

Source
pub type float = f32;
Expand description

floating-point value.

Trait Implementations§

Source§

impl Std140 for float

Source§

fn as_raw(&self) -> &[u8]

Convert to bytes-slice.
Source§

impl Uniform for float

Source§

type Align = Align4

ZST that enforces alignment required for this type.
Source§

type Std140 = f32

Type that contain same data with memory layout matching glsl’s layout(std140).
Source§

fn std140(&self) -> float

Get aligned data from structure.