Type Alias Vector4

Source
pub type Vector4 = Vector4<f32>;
Expand description

Vector4, 4x f32 components

Aliased Type§

#[repr(C)]
pub struct Vector4 { pub x: f32, pub y: f32, pub z: f32, pub w: f32, }

Fields§

§x: f32§y: f32§z: f32§w: f32

Trait Implementations§

Source§

impl From<Vector4> for Vector4

Source§

fn from(value: Vector4) -> Self

Converts to this type from the input type.
Source§

impl ShaderValue for Vector4

Source§

const UNIFORM_TYPE: ShaderUniformDataType = ShaderUniformDataType::Vec4

Uniform type assiciated with the value
Source§

unsafe fn raw_value(&self) -> *const c_void

Get the value as a void*