| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#include <string> |
| 10 |
|
| 11 |
#include "Common/CommonTypes.h" |
| 12 |
#include "Common/SmallVector.h" |
| 13 |
#include "VideoCommon/VertexLoaderBase.h" |
| 14 |
|
| 15 |
class VertexLoader; |
| 16 |
typedef void (*TPipelineFunction)(VertexLoader* loader); |
| 17 |
|
| 18 |
class VertexLoader : public VertexLoaderBase |
| 19 |
{ |
| 20 |
public: |
| 21 |
VertexLoader(const TVtxDesc& vtx_desc, const VAT& vtx_attr); |
| 22 |
|
| 23 |
int RunVertices(const u8* src, u8* dst, int count) override; |
| 24 |
|
| 25 |
float m_posScale; |
| 26 |
float m_tcScale[8]; |
| 27 |
int m_tcIndex; |
| 28 |
int m_colIndex; |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
u8 m_curtexmtx[8]; |
| 34 |
int m_texmtxwrite; |
| 35 |
int m_texmtxread; |
| 36 |
bool m_vertexSkip; |
| 37 |
int m_skippedVertices; |
| 38 |
int m_remaining; |
| 39 |
|
| 40 |
private: |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
Common::SmallVector<TPipelineFunction, 30> m_PipelineStages; |
| 47 |
|
| 48 |
void CompileVertexTranslator(); |
| 49 |
|
| 50 |
void WriteCall(TPipelineFunction); |
| 51 |
}; |