mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-10-01 18:31:21 -04:00
f49ca4edbc
* feat: implement fix and changes based on dark cloud report fix: fix GS AFAIL for RGB/alpha/Z, ZMSK fix: fix VU1 flags mask and pipeline fix: small VU1 cache fix feat: __ct__, __sinit_ are not sillent stubs anymore * feat: fix song JP pulling * feat: sound update for lotR * feat: prevent guest execution to be very slow * fix: small gs size bug * feat: refactor VU fix: fix cliping and other issues on gs fix: fix wrong vu0 register on recompiler * fix fix ACC scheduler stall feat: remove unused test fix: .fix overflow e underflow on FMAC * feat: small setting for windows test
23 lines
572 B
C++
23 lines
572 B
C++
#ifndef PS2_GS_RASTERIZER_H
|
|
#define PS2_GS_RASTERIZER_H
|
|
|
|
#include <cstdint>
|
|
|
|
class GS;
|
|
|
|
class GSRasterizer
|
|
{
|
|
public:
|
|
void drawPrimitive(GS *gs);
|
|
void writePixel(GS *gs, int x, int y, int z, uint8_t r, uint8_t g, uint8_t b, uint8_t a, uint8_t fog);
|
|
uint32_t sampleTexture(GS *gs, float s, float t, float q, uint16_t u, uint16_t v);
|
|
uint32_t lookupCLUT(GS *gs, uint8_t index, uint32_t cbp, uint8_t cpsm, uint8_t csm, uint8_t csa, uint8_t sourcePsm);
|
|
|
|
private:
|
|
void drawSprite(GS *gs);
|
|
void drawTriangle(GS *gs);
|
|
void drawLine(GS *gs);
|
|
};
|
|
|
|
#endif
|