| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include "Common/CommonTypes.h" |
| 7 |
|
| 8 |
struct OutputVertexData; |
| 9 |
|
| 10 |
namespace Rasterizer |
| 11 |
{ |
| 12 |
void Init(); |
| 13 |
void ScissorChanged(); |
| 14 |
|
| 15 |
void UpdateZSlope(const OutputVertexData* v0, const OutputVertexData* v1, |
| 16 |
const OutputVertexData* v2, s32 x_off, s32 y_off); |
| 17 |
void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v1, |
| 18 |
const OutputVertexData* v2); |
| 19 |
|
| 20 |
void SetTevKonstColors(); |
| 21 |
|
| 22 |
struct RasterBlockPixel |
| 23 |
{ |
| 24 |
float InvW; |
| 25 |
float Uv[8][2]; |
| 26 |
}; |
| 27 |
|
| 28 |
struct RasterBlock |
| 29 |
{ |
| 30 |
RasterBlockPixel Pixel[2][2]; |
| 31 |
s32 IndirectLod[4]; |
| 32 |
bool IndirectLinear[4]; |
| 33 |
s32 TextureLod[16]; |
| 34 |
bool TextureLinear[16]; |
| 35 |
}; |
| 36 |
} |