From fdcd2b7d009cece6ad090143ce954aed713bb11c Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Wed, 14 Sep 2022 23:58:09 +0200 Subject: VertexLoader: Inline GetSize --- Source/Core/VideoCommon/VertexLoader_Position.cpp | 37 ----------------------- 1 file changed, 37 deletions(-) (limited to 'Source/Core/VideoCommon/VertexLoader_Position.cpp') diff --git a/Source/Core/VideoCommon/VertexLoader_Position.cpp b/Source/Core/VideoCommon/VertexLoader_Position.cpp index 15d2f6d94e..a568518798 100644 --- a/Source/Core/VideoCommon/VertexLoader_Position.cpp +++ b/Source/Core/VideoCommon/VertexLoader_Position.cpp @@ -138,45 +138,8 @@ constexpr Table s_table_read_position = { e(Pos_ReadIndex, Pos_ReadIndex), }), }; - -constexpr Table s_table_read_position_vertex_size = { - g({ - e(0u, 0u), - e(0u, 0u), - e(0u, 0u), - e(0u, 0u), - e(0u, 0u), - }), - g({ - e(2, 3), - e(2, 3), - e(4, 6), - e(4, 6), - e(8, 12), - }), - g({ - e(1, 1), - e(1, 1), - e(1, 1), - e(1, 1), - e(1, 1), - }), - g({ - e(2, 2), - e(2, 2), - e(2, 2), - e(2, 2), - e(2, 2), - }), -}; } // Anonymous namespace -u32 VertexLoader_Position::GetSize(VertexComponentFormat type, ComponentFormat format, - CoordComponentCount elements) -{ - return s_table_read_position_vertex_size[type][format][elements]; -} - TPipelineFunction VertexLoader_Position::GetFunction(VertexComponentFormat type, ComponentFormat format, CoordComponentCount elements) -- cgit v1.2.3