Move Zfreeze code out individual backends into videoCommon

Also:
 * Implement support for per-vertex PosMatrixIndex
 * Only update zslope constant once when zfreeze is activated.
 * Added a bunch of comments.
This commit is contained in:
Scott Mansell
2015-01-24 03:15:09 +13:00
parent daf760b202
commit 5510c86b81
10 changed files with 59 additions and 40 deletions

View File

@ -4,6 +4,7 @@
#include "Common/CommonFuncs.h"
#include "Common/CommonTypes.h"
#include "VideoCommon/DataReader.h"
#include "VideoCommon/NativeVertexFormat.h"
class NativeVertexFormat;
class PointerWrap;
@ -19,6 +20,7 @@ struct Slope
float dfdx;
float dfdy;
float f0;
bool dirty;
};
class VertexManager
@ -63,7 +65,7 @@ protected:
static u32 GetRemainingIndices(int primitive);
static Slope ZSlope;
static void CalculateZSlope(u32 stride);
static void CalculateZSlope(NativeVertexFormat *format);
private:
static bool IsFlushed;