2015-05-24 07:55:12 +03:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-05 04:22:19 +03:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2010-06-09 04:37:08 +03:00
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2010-06-09 04:37:08 +03:00
|
|
|
|
2016-09-24 12:16:52 +03:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-07-30 03:55:07 +03:00
|
|
|
|
|
|
|
struct OutputVertexData;
|
2010-06-09 04:37:08 +03:00
|
|
|
|
2009-10-12 03:48:24 +03:00
|
|
|
namespace Rasterizer
|
|
|
|
{
|
|
|
|
void Init();
|
2021-11-10 04:38:24 +02:00
|
|
|
void ScissorChanged();
|
2016-06-24 11:43:46 +03:00
|
|
|
|
2021-11-30 03:51:02 +02:00
|
|
|
void UpdateZSlope(const OutputVertexData* v0, const OutputVertexData* v1,
|
2021-11-10 04:38:24 +02:00
|
|
|
const OutputVertexData* v2, s32 x_off, s32 y_off);
|
2016-09-23 03:39:28 +03:00
|
|
|
void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v1,
|
|
|
|
const OutputVertexData* v2);
|
2016-06-24 11:43:46 +03:00
|
|
|
|
2016-03-06 12:03:45 +02:00
|
|
|
void SetTevReg(int reg, int comp, s16 color);
|
2016-06-24 11:43:46 +03:00
|
|
|
|
2010-03-09 06:38:07 +02:00
|
|
|
struct RasterBlockPixel
|
|
|
|
{
|
|
|
|
float InvW;
|
|
|
|
float Uv[8][2];
|
|
|
|
};
|
2016-06-24 11:43:46 +03:00
|
|
|
|
2010-03-09 06:38:07 +02:00
|
|
|
struct RasterBlock
|
|
|
|
{
|
|
|
|
RasterBlockPixel Pixel[2][2];
|
|
|
|
s32 IndirectLod[4];
|
|
|
|
bool IndirectLinear[4];
|
|
|
|
s32 TextureLod[16];
|
|
|
|
bool TextureLinear[16];
|
|
|
|
};
|
2019-05-06 02:48:12 +03:00
|
|
|
} // namespace Rasterizer
|