Faster AA table generation

This commit is contained in:
elasota
2021-03-27 03:01:43 -04:00
parent ae69696cbd
commit 0df94405f8
3 changed files with 141 additions and 2 deletions

View File

@@ -12,7 +12,10 @@ namespace PortabilityLayer
// Striped 256x16 because constant background color is more likely than constant sample
uint8_t m_aaTranslate[256][16];
#if 0
void GenerateForPalette(const RGBAColor &baseColor, const RGBAColor *colors, size_t numColors, bool cacheable);
#endif
void GenerateForPaletteFast(const RGBAColor &baseColor);
void GenerateForSimpleScale(uint8_t colorChannel, bool cacheable);
private: