Merge pull request 'RGB565 linux issues' (#127) from linux_fixes into master
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/127 Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user