mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 00:59:44 +00:00
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:
parent
daf760b202
commit
5510c86b81
10 changed files with 59 additions and 40 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue