fix linux build issues

This commit is contained in:
ohyzha
2024-09-27 18:44:10 +03:00
parent 416f9ce4bf
commit fca7ff7362

View File

@@ -214,7 +214,7 @@ namespace OpenVulkano::Math
template<typename T, std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> = true>
RGB565& operator+=(const Vector3_SIMD<T>& color)
{
Set(Get3SIMD<T>() + color);
Set(GetSIMD<T>() + color);
return *this;
}
@@ -256,7 +256,7 @@ namespace OpenVulkano::Math
template<typename T, std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> = true>
RGB565& operator-=(const Vector3_SIMD<T>& color)
{
Set(Get3SIMD<T>() - color);
Set(GetSIMD<T>() - color);
return *this;
}
@@ -289,7 +289,7 @@ namespace OpenVulkano::Math
template<typename T, std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> = true>
operator Math::Vector3<T>() { return Get3<T>(); }
template<typename T, std::enable_if_t<std::is_unsigned_v<T> || std::is_signed_v<T>, bool> = true>
operator Math::Vector3_SIMD<T>() { return Get3SIMD<T>(); }
operator Math::Vector3_SIMD<T>() { return GetSIMD<T>(); }
template<typename T, std::enable_if_t<std::is_floating_point_v<T>, bool> = true>
operator Math::Vector4<T>() { return Get4Normalized<T>(); }
template<typename T, std::enable_if_t<std::is_floating_point_v<T>, bool> = true>