mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-01 05:37:07 +02:00
Merge pull request #1625 from FernandoS27/astc
Implement ASTC Textures 5x5 and fix a bunch of ASTC texture problems
This commit is contained in:
commit
020efd1ced
9 changed files with 154 additions and 75 deletions
|
|
@ -386,9 +386,9 @@ void GraphicsSurfaceWidget::OnUpdate() {
|
|||
|
||||
// TODO(bunnei): Will not work with BCn formats that swizzle 4x4 tiles.
|
||||
// Needs to be fixed if we plan to use this feature more, otherwise we may remove it.
|
||||
auto unswizzled_data =
|
||||
Tegra::Texture::UnswizzleTexture(*address, 1, Tegra::Texture::BytesPerPixel(surface_format),
|
||||
surface_width, surface_height, 1U);
|
||||
auto unswizzled_data = Tegra::Texture::UnswizzleTexture(
|
||||
*address, 1, 1, Tegra::Texture::BytesPerPixel(surface_format), surface_width,
|
||||
surface_height, 1U);
|
||||
|
||||
auto texture_data = Tegra::Texture::DecodeTexture(unswizzled_data, surface_format,
|
||||
surface_width, surface_height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue