diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-06-20 13:47:57 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-12-18 12:51:56 -0800 |
| commit | 1914087998bc296208355dc4b1b2553430b081b2 (patch) | |
| tree | bae5ecbd974582819f38c01fbff2aa762a812761 /Source/Core/VideoCommon/VertexLoader_Normal.cpp | |
| parent | 3aaeb2b9ef3f6b9cde69c77ecdf96e8defc996d5 (diff) | |
Create and use CPArray enum class
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader_Normal.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp index f19f27eda3..254bcacff3 100644 --- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp @@ -59,7 +59,7 @@ struct Normal_Direct { static void function([[maybe_unused]] VertexLoader* loader) { - auto const source = reinterpret_cast<const T*>(DataGetPosition()); + const auto source = reinterpret_cast<const T*>(DataGetPosition()); ReadIndirect<T, N * 3>(source); DataSkip<N * 3 * sizeof(T)>(); } @@ -72,10 +72,10 @@ void Normal_Index_Offset() { static_assert(std::is_unsigned_v<I>, "Only unsigned I is sane!"); - auto const index = DataRead<I>(); - auto const data = reinterpret_cast<const T*>( - VertexLoaderManager::cached_arraybases[ARRAY_NORMAL] + - (index * g_main_cp_state.array_strides[ARRAY_NORMAL]) + sizeof(T) * 3 * Offset); + const auto index = DataRead<I>(); + const auto data = reinterpret_cast<const T*>( + VertexLoaderManager::cached_arraybases[CPArray::Normal] + + (index * g_main_cp_state.array_strides[CPArray::Normal]) + sizeof(T) * 3 * Offset); ReadIndirect<T, N * 3>(data); } |
