Fix compilation

This commit is contained in:
Wojtek Figat
2022-07-03 15:33:15 +02:00
parent 400c4bb570
commit 98d8543334
2 changed files with 34 additions and 1 deletions

View File

@@ -206,6 +206,18 @@ void Float3::Transform(const Float3& vector, const Matrix3x3& transform, Float3&
vector.X * transform.M13 + vector.Y * transform.M23 + vector.Z * transform.M33);
}
template<>
void Float3::Transform(const Float3& vector, const ::Transform& transform, Float3& result)
{
#if USE_LARGE_WORLDS
Vector3 tmp;
transform.LocalToWorld(vector, tmp);
result = tmp;
#else
transform.LocalToWorld(vector, result);
#endif
}
template<>
Float3 Float3::Transform(const Float3& vector, const Matrix& transform)
{
@@ -508,6 +520,18 @@ void Double3::Transform(const Double3& vector, const Matrix3x3& transform, Doubl
vector.X * transform.M13 + vector.Y * transform.M23 + vector.Z * transform.M33);
}
template<>
void Double3::Transform(const Double3& vector, const ::Transform& transform, Double3& result)
{
#if USE_LARGE_WORLDS
transform.LocalToWorld(vector, result);
#else
Vector3 tmp;
transform.LocalToWorld(vector, tmp);
result = tmp;
#endif
}
template<>
Double3 Double3::Transform(const Double3& vector, const Matrix& transform)
{
@@ -759,6 +783,12 @@ void Int3::Transform(const Int3& vector, const Matrix3x3& transform, Int3& resul
result = vector;
}
template<>
void Int3::Transform(const Int3& vector, const ::Transform& transform, Int3& result)
{
result = vector;
}
template<>
Int3 Int3::Transform(const Int3& vector, const Matrix& transform)
{

View File

@@ -215,7 +215,10 @@ static VKAPI_ATTR VkBool32 VKAPI_PTR DebugUtilsCallback(VkDebugUtilsMessageSever
while (handleStart != nullptr)
{
while (*handleStart != ' ' && *handleStart != 0)
*handleStart++ = Math::Clamp<char>(*handleStart, '0', 'z');
{
*handleStart = Math::Clamp<char>(*handleStart, '0', 'z');
handleStart++;
}
if (*handleStart == 0)
break;
handleStart = (char*)StringUtils::FindIgnoreCase(handleStart, "0x");