1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Force ptcl for wii u to generate mip offsets

This commit is contained in:
KillzXGaming 2019-07-29 15:05:50 -04:00
parent f58efacbef
commit e1d9dff336
5 changed files with 4 additions and 8 deletions

View File

@ -629,19 +629,12 @@ namespace FirstPlugin
surf.data = data;
surf.mipData = data;
surf.numMips = MipCount;
surf.mipOffset = new uint[MipCount];
surf.mipData = null;
surf.tileMode = TileMode;
surf.swizzle = Swizzle;
surf.imageSize = ImageSize;
// GX2.GenerateMipSurfaceData(surf);
foreach (var mipoffset in surf.mipOffset)
{
Console.WriteLine($"mipoffset {mipoffset}");
}
return GX2.Decode(surf, ArrayLevel, MipLevel);
}

View File

@ -778,6 +778,9 @@ namespace Toolbox.Library
Console.WriteLine(" data size = " + tex.data.Length);
Console.WriteLine(" realSize = " + tex.imageSize);*/
if (tex.mipOffset == null || tex.mipOffset.Length == 0)
tex.mipOffset = GenerateMipOffsets(tex);
uint blkWidth, blkHeight;
if (IsFormatBCN((GX2SurfaceFormat)tex.format))
{

View File

@ -42,7 +42,7 @@ namespace Toolbox
bool LoadedDX = TryLoadDirectXTex();
if (!LoadedDX && !Toolbox.Library.Runtime.UseDirectXTexDecoder)
{
var result = MessageBox.Show("Direct X Tex Failed to load! Make sure to install Visual C++ and Direct X Tex. Do you want to go to the install sites?");
var result = MessageBox.Show("Direct X Tex Failed to load! Make sure to install Visual C++ and Direct X Tex. Do you want to go to the install sites?", "", MessageBoxButtons.YesNo);
if (result == DialogResult.Yes)
{
System.Diagnostics.Process.Start("https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads");