Rasterizer.h 773 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2008 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "Common/CommonTypes.h"
  5. struct OutputVertexData;
  6. namespace Rasterizer
  7. {
  8. void Init();
  9. void ScissorChanged();
  10. void UpdateZSlope(const OutputVertexData* v0, const OutputVertexData* v1,
  11. const OutputVertexData* v2, s32 x_off, s32 y_off);
  12. void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v1,
  13. const OutputVertexData* v2);
  14. void SetTevKonstColors();
  15. struct RasterBlockPixel
  16. {
  17. float InvW;
  18. float Uv[8][2];
  19. };
  20. struct RasterBlock
  21. {
  22. RasterBlockPixel Pixel[2][2];
  23. s32 IndirectLod[4];
  24. bool IndirectLinear[4];
  25. s32 TextureLod[16];
  26. bool TextureLinear[16];
  27. };
  28. } // namespace Rasterizer