mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
VertexLoader: Eliminate use of DataReader
DataReader is generally jank - it has a start and end pointer, but the end pointer is generally not used, and all of the vertex loaders mostly bypassed it anyways. Wrapper code (the vertex loaer test, as well as Fifo.cpp and OpcodeDecoding.cpp) still uses it, as does the software vertex loader (which is not a subclass of VertexLoader). These can probably be eliminated later.
This commit is contained in:
parent
8ac8d5afb6
commit
0bcd3c79bb
16 changed files with 36 additions and 69 deletions
|
@ -11,7 +11,6 @@
|
|||
#include "Common/CommonTypes.h"
|
||||
#include "VideoCommon/VertexLoaderBase.h"
|
||||
|
||||
class DataReader;
|
||||
class VertexLoader;
|
||||
typedef void (*TPipelineFunction)(VertexLoader* loader);
|
||||
|
||||
|
@ -20,7 +19,7 @@ class VertexLoader : public VertexLoaderBase
|
|||
public:
|
||||
VertexLoader(const TVtxDesc& vtx_desc, const VAT& vtx_attr);
|
||||
|
||||
int RunVertices(DataReader src, DataReader dst, int count) override;
|
||||
int RunVertices(const u8* src, u8* dst, int count) override;
|
||||
// They are used for the communication with the loader functions
|
||||
float m_posScale;
|
||||
float m_tcScale[8];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue