GPU: Added a method to unswizzle a texture without decoding it.

Allow unswizzling of DXT1 textures.
This commit is contained in:
Subv
2018-03-22 15:17:10 -05:00
parent 71ebc3e90d
commit 1b8d798835
4 changed files with 95 additions and 5 deletions

View File

@ -196,7 +196,7 @@ void Maxwell3D::DrawArrays() {
auto format = tic_entry.format.Value();
auto texture = Texture::DecodeTexture(
auto texture = Texture::UnswizzleTexture(
memory_manager.PhysicalToVirtualAddress(tic_entry.Address()),
tic_entry.format.Value(), tic_entry.Width(), tic_entry.Height());