diff options
| author | JMC47 <JMC4789@gmail.com> | 2022-09-15 14:25:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-15 14:25:32 -0400 |
| commit | 32fba6dbd821a576140ca6b2d30be8e2353b5bc9 (patch) | |
| tree | ef2ba05168f44eca960edd4630fa77a131db72a8 /Source/Core/VideoCommon/VertexLoader_TextCoord.cpp | |
| parent | 1efb5b8800a4d12a94957c8469d2cd767cce318d (diff) | |
| parent | fdcd2b7d009cece6ad090143ce954aed713bb11c (diff) | |
Merge pull request #11066 from K0bin/vertex-size-opt
Optimize GetVertexSize
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_TextCoord.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader_TextCoord.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp index 89891df5a8..8b2bbf5560 100644 --- a/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp +++ b/Source/Core/VideoCommon/VertexLoader_TextCoord.cpp @@ -127,45 +127,8 @@ constexpr Table<TPipelineFunction> s_table_read_tex_coord = { e(TexCoord_ReadIndex<u16, float, 1>, TexCoord_ReadIndex<u16, float, 2>), }), }; - -constexpr Table<u32> s_table_read_tex_coord_vertex_size = { - g({ - e(0u, 0u), - e(0u, 0u), - e(0u, 0u), - e(0u, 0u), - e(0u, 0u), - }), - g({ - e(1, 2), - e(1, 2), - e(2, 4), - e(2, 4), - e(4, 8), - }), - 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_TextCoord::GetSize(VertexComponentFormat type, ComponentFormat format, - TexComponentCount elements) -{ - return s_table_read_tex_coord_vertex_size[type][format][elements]; -} - TPipelineFunction VertexLoader_TextCoord::GetFunction(VertexComponentFormat type, ComponentFormat format, TexComponentCount elements) |
