mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[util] introduce a raw constructor for Matrix4
This commit is contained in:
parent
c7271d94c1
commit
02eebb8595
@ -35,6 +35,13 @@ namespace dxvk {
|
|||||||
data[3] = v3;
|
data[3] = v3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline Matrix4(const float matrix[4][4]) {
|
||||||
|
data[0] = Vector4(matrix[0]);
|
||||||
|
data[1] = Vector4(matrix[1]);
|
||||||
|
data[2] = Vector4(matrix[2]);
|
||||||
|
data[3] = Vector4(matrix[3]);
|
||||||
|
}
|
||||||
|
|
||||||
Matrix4(const Matrix4& other) = default;
|
Matrix4(const Matrix4& other) = default;
|
||||||
|
|
||||||
Vector4& operator[](size_t index);
|
Vector4& operator[](size_t index);
|
||||||
|
@ -18,7 +18,7 @@ namespace dxvk {
|
|||||||
Vector4Base(T x, T y, T z, T w)
|
Vector4Base(T x, T y, T z, T w)
|
||||||
: x(x), y(y), z(z), w(w) { }
|
: x(x), y(y), z(z), w(w) { }
|
||||||
|
|
||||||
Vector4Base(T xyzw[4])
|
Vector4Base(const T xyzw[4])
|
||||||
: x(xyzw[0]), y(xyzw[1]), z(xyzw[2]), w(xyzw[3]) { }
|
: x(xyzw[0]), y(xyzw[1]), z(xyzw[2]), w(xyzw[3]) { }
|
||||||
|
|
||||||
Vector4Base(const Vector4Base<T>& other) = default;
|
Vector4Base(const Vector4Base<T>& other) = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user