summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader_Normal.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_Normal.cpp b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
index b5caee8a72..c59b3bc13e 100644
--- a/Source/Core/VideoCommon/VertexLoader_Normal.cpp
+++ b/Source/Core/VideoCommon/VertexLoader_Normal.cpp
@@ -230,12 +230,15 @@ constexpr Types InitializeTable()
constexpr Types s_table = InitializeTable();
} // Anonymous namespace
-u32 VertexLoader_Normal::GetSize(u64 type, u32 format, u32 elements, u32 index3)
+u32 VertexLoader_Normal::GetSize(VertexComponentFormat type, ComponentFormat format,
+ NormalComponentCount elements, u32 index3)
{
- return s_table[type][index3][elements][format].gc_size;
+ return s_table[u32(type)][index3][u32(elements)][u32(format)].gc_size;
}
-TPipelineFunction VertexLoader_Normal::GetFunction(u64 type, u32 format, u32 elements, u32 index3)
+TPipelineFunction VertexLoader_Normal::GetFunction(VertexComponentFormat type,
+ ComponentFormat format,
+ NormalComponentCount elements, u32 index3)
{
- return s_table[type][index3][elements][format].function;
+ return s_table[u32(type)][index3][u32(elements)][u32(format)].function;
}