mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:

committed by
Scott Mansell

parent
6d5065c58d
commit
add59b3bea
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user