mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-15 22:40:14 +02:00
A few minor improvements when building with C++17
This commit is contained in:
parent
4482cb3e40
commit
5a1d284615
@ -1195,7 +1195,11 @@ namespace
|
|||||||
|
|
||||||
// Find Min and Max points, as starting point
|
// Find Min and Max points, as starting point
|
||||||
HDRColorA X, Y;
|
HDRColorA X, Y;
|
||||||
|
#if (__cplusplus >= 201703L)
|
||||||
|
if constexpr (ishdr)
|
||||||
|
#else
|
||||||
if (ishdr)
|
if (ishdr)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
X = HDRColorA{ FLT_MAX, FLT_MAX, FLT_MAX, 0.0f };
|
X = HDRColorA{ FLT_MAX, FLT_MAX, FLT_MAX, 0.0f };
|
||||||
Y = HDRColorA{ -FLT_MAX, -FLT_MAX, -FLT_MAX, 0.0f };
|
Y = HDRColorA{ -FLT_MAX, -FLT_MAX, -FLT_MAX, 0.0f };
|
||||||
|
@ -3263,10 +3263,11 @@ void DirectX::Internal::ConvertScanline(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if (__cplusplus >= 201703L)
|
||||||
|
[[fallthrough]];
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
__fallthrough;
|
__fallthrough;
|
||||||
#endif
|
#elif defined(__clang__)
|
||||||
#ifdef __clang__
|
|
||||||
[[clang::fallthrough]];
|
[[clang::fallthrough]];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3552,10 +3553,11 @@ void DirectX::Internal::ConvertScanline(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if (__cplusplus >= 201703L)
|
||||||
|
[[fallthrough]];
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
__fallthrough;
|
__fallthrough;
|
||||||
#endif
|
#elif defined(__clang__)
|
||||||
#ifdef __clang__
|
|
||||||
[[clang::fallthrough]];
|
[[clang::fallthrough]];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3650,10 +3652,11 @@ void DirectX::Internal::ConvertScanline(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if (__cplusplus >= 201703L)
|
||||||
|
[[fallthrough]];
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
__fallthrough;
|
__fallthrough;
|
||||||
#endif
|
#elif defined(__clang__)
|
||||||
#ifdef __clang__
|
|
||||||
[[clang::fallthrough]];
|
[[clang::fallthrough]];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user