summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-29 23:58:18 -0400
committerLioncash <mathew1800@gmail.com>2019-05-30 00:52:59 -0400
commit0084aeb5d7ee25562f0303d23707433d41c6e65a (patch)
treeab593fdf8ebd8d27430c0231f4d0c99d3e0322c7 /Source/Core/VideoCommon/VertexLoader_Normal.cpp
parent8268b6f454fdba44cd6be4e8abec431b1a2e422a (diff)
VideoCommon/VertexLoader_Normal: Use variable template variants of type traits
Same thing, less reading.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Normal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
index 4043204db6..692941f3b9 100644
--- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
@@ -30,7 +30,7 @@ constexpr float FracAdjust(T val)
// auto const U16FRAC = 1.f / (1u << 15);
// TODO: is this right?
- return val / float(1u << (sizeof(T) * 8 - std::is_signed<T>::value - 1));
+ return val / float(1u << (sizeof(T) * 8 - std::is_signed_v<T> - 1));
}
template <>
@@ -70,7 +70,7 @@ struct Normal_Direct
template <typename I, typename T, u32 N, u32 Offset>
void Normal_Index_Offset()
{
- static_assert(std::is_unsigned<I>::value, "Only unsigned I is sane!");
+ static_assert(std::is_unsigned_v<I>, "Only unsigned I is sane!");
auto const index = DataRead<I>();
auto const data = reinterpret_cast<const T*>(