VertexLoader: Use Common::SmallVector

This commit is contained in:
Pokechu22
2023-11-25 17:33:44 -08:00
parent 4116344785
commit 69cf8b3470
2 changed files with 9 additions and 8 deletions

View File

@ -9,6 +9,7 @@
#include <string>
#include "Common/CommonTypes.h"
#include "Common/SmallVector.h"
#include "VideoCommon/VertexLoaderBase.h"
class VertexLoader;
@ -38,8 +39,11 @@ public:
private:
// Pipeline.
TPipelineFunction m_PipelineStages[64]; // TODO - figure out real max. it's lower.
int m_numPipelineStages;
// 1 pos matrix + 8 texture matrices + 1 position + 1 normal or normal/binormal/tangent
// + 2 colors + 8 texture coordinates or dummy texture coordinates + 8 texture matrices
// merged into texture coordinates + 1 skip gives a maximum of 30
// (Tested by VertexLoaderTest.LargeFloatVertexSpeed)
Common::SmallVector<TPipelineFunction, 30> m_PipelineStages;
void CompileVertexTranslator();