mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user