Struct glsl_layout::vec2
source · pub struct vec2(_);
Expand description
Vector of 2 float
values.
foo: vec2
is equivalent to glsl’s vec2 foo;
Examples
let x: vec2 = [1f32; 2].into();
Trait Implementations§
source§impl PartialOrd<vec2> for vec2
impl PartialOrd<vec2> for vec2
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more