1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[util] Make math types have implicit copy assignments

We define implicit copy constructors, should also define implicit copy assignments.
This commit is contained in:
Joshua Ashton 2022-09-10 21:26:03 +00:00 committed by Joshie
parent 99e01d64f7
commit 935541bcb0
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ namespace dxvk {
}
Matrix4(const Matrix4& other) = default;
Matrix4& operator=(const Matrix4& other) = default;
Vector4& operator[](size_t index);
const Vector4& operator[](size_t index) const;

View File

@ -22,6 +22,7 @@ namespace dxvk {
: x(xyzw[0]), y(xyzw[1]), z(xyzw[2]), w(xyzw[3]) { }
Vector4Base(const Vector4Base<T>& other) = default;
Vector4Base& operator=(const Vector4Base<T>& other) = default;
inline T& operator[](size_t index) { return data[index]; }
inline const T& operator[](size_t index) const { return data[index]; }