Add vertex cache

This commit is contained in:
Ced2911 committed 2013-09-12 09:49:56 +02:00
1 parent fecf87e9d3
commit 92fb2ba17e
2 files changed
+518 -568

No files matched your search

File diff suppressed because it is too large. Load diff
+1 -8
View File
@@ -130,7 +130,6 @@ public:
private:
void DoFlush();
void SoftwareTransformAndDraw(int prim, u8 *decoded, LinkedShader *program, int vertexCount, u32 vertexType, void *inds, int indexType, const DecVtxFormat &decVtxFormat, int maxIndex);
void MixedTransformAndDraw(int prim, u8 *decoded, LinkedShader *program, int vertexCount, u32 vertexType, void *inds, int indexType, const DecVtxFormat &decVtxFormat, int maxIndex, LPDIRECT3DVERTEXBUFFER9 vb_, LPDIRECT3DINDEXBUFFER9 ib_);
void ApplyDrawState(int prim);
bool IsReallyAClear(int numVerts) const;
@@ -171,13 +170,7 @@ private:
TransformedVertex *transformedExpanded;
std::map<u32, VertexArrayInfo *> vai_;
// Vertex buffer objects
enum { NUM_VBOS = 2 };
LPDIRECT3DVERTEXBUFFER9 vb[NUM_VBOS];
LPDIRECT3DINDEXBUFFER9 ib[NUM_VBOS];
int curVbo_;
// Other
ShaderManager *shaderManager_;
TextureCache *textureCache_;