mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
VertexLoader: Use Common::SmallVector
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user