Fixes Mario Tennis Gimmick Courts and adds support for FastDepthCalc

- Calculate ZSlope every flush but only set PixelShader Constant on Reset Buffer when zfreeze
- Fixed another Pixel Shader bug in D3D that was giving me grief
This commit is contained in:
NanoByte011
2015-01-13 02:55:25 -07:00
committed by Scott Mansell
parent 6d5065c58d
commit add59b3bea
7 changed files with 52 additions and 26 deletions

View File

@ -14,6 +14,13 @@ enum PrimitiveType {
PRIMITIVE_TRIANGLES,
};
struct Slope
{
float dfdx;
float dfdy;
float f0;
};
class VertexManager
{
private:
@ -41,8 +48,6 @@ public:
static void DoState(PointerWrap& p);
static void CalculateZSlope(u32 stride);
protected:
virtual void vDoState(PointerWrap& p) { }
@ -57,6 +62,9 @@ protected:
static u32 GetRemainingSize();
static u32 GetRemainingIndices(int primitive);
static Slope ZSlope;
static void CalculateZSlope(u32 stride);
private:
static bool IsFlushed;