videocore: Added RG8 texture support
This commit is contained in:
parent
882040fde7
commit
5b65d95310
3 changed files with 26 additions and 1 deletions
|
@ -359,6 +359,12 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture
|
|||
}
|
||||
}
|
||||
|
||||
case Regs::TextureFormat::RG8:
|
||||
{
|
||||
auto res = Color::DecodeRG8(source + VideoCore::GetMortonOffset(x, y, 2));
|
||||
return { res.r(), res.g(), 0, 255 };
|
||||
}
|
||||
|
||||
case Regs::TextureFormat::I8:
|
||||
{
|
||||
const u8* source_ptr = source + VideoCore::GetMortonOffset(x, y, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue