Force ptcl for wii u to generate mip offsets
This commit is contained in:
parent
f58efacbef
commit
e1d9dff336
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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))
|
||||
{
|
||||
|
Binary file not shown.
Binary file not shown.
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user