mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-16 14:37:56 -05:00
Merge pull request #1034 from yuriks/rg8-textures
videocore: Added RG8 texture support
This commit is contained in:
@ -410,6 +410,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);
|
||||
|
Reference in New Issue
Block a user