move::vectormath::gpuvec4 struct
#include <gpuvec4.hpp>

A 4D vector that is guaranteed to be correctly laid out for GPU usage.

This is a 4D vector that is guaranteed to be correctly laid out for GPU usage. It should be used whenever a 4D vector is needed for GPU usage.

Constructors, destructors, conversion operators

gpuvec4() defaulted
gpuvec4(const gpuvec4&) defaulted
gpuvec4(gpuvec4&&) defaulted
gpuvec4(const vec4f& v)
gpuvec4(const vec4d& v)
gpuvec4(float x, float y, float z, float w)
Constructs a gpuvec4 with the given x and y values.
operator vec4f() const
operator vec4d() const

Public functions

auto operator=(const gpuvec4&) -> gpuvec4& defaulted
auto operator=(gpuvec4&&) -> gpuvec4& defaulted
auto as_array() -> float*

Public variables

float x
float y
float z
float w

Function documentation

move::vectormath::gpuvec4::gpuvec4(float x, float y, float z, float w)

Constructs a gpuvec4 with the given x and y values.

Parameters
x The x value of the gpuvec4.
y The y value of the gpuvec4.
z
w