mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
BNTX : Fix certain texture formats. Allow any unsupported ones to open.
This commit is contained in:
parent
f1af34e903
commit
9e1d47877c
3 changed files with 8 additions and 2 deletions
Binary file not shown.
|
@ -1388,7 +1388,6 @@ namespace FirstPlugin
|
|||
case SurfaceFormat.B8_G8_R8_A8_UNORM: return TEX_FORMAT.B8G8R8A8_UNORM;
|
||||
case SurfaceFormat.R10_G10_B10_A2_UNORM: return TEX_FORMAT.R10G10B10A2_UNORM;
|
||||
case SurfaceFormat.R11_G11_B10_UINT: return TEX_FORMAT.R11G11B10_FLOAT;
|
||||
case SurfaceFormat.R16_UNORM: return TEX_FORMAT.R16_UNORM;
|
||||
case SurfaceFormat.R4_G4_B4_A4_UNORM: return TEX_FORMAT.B4G4R4A4_UNORM;
|
||||
case SurfaceFormat.R4_G4_UNORM: return TEX_FORMAT.B4G4R4A4_UNORM;
|
||||
case SurfaceFormat.R5_G5_B5_A1_UNORM: return TEX_FORMAT.R5G5B5A1_UNORM;
|
||||
|
@ -1397,7 +1396,11 @@ namespace FirstPlugin
|
|||
case SurfaceFormat.R8_G8_B8_A8_UNORM: return TEX_FORMAT.R8G8B8A8_UNORM;
|
||||
case SurfaceFormat.R8_G8_B8_A8_SNORM: return TEX_FORMAT.R8G8B8A8_SNORM;
|
||||
case SurfaceFormat.R8_UNORM: return TEX_FORMAT.R8_UNORM;
|
||||
case SurfaceFormat.R16_UNORM: return TEX_FORMAT.R16_UNORM;
|
||||
case SurfaceFormat.R16_SNORM: return TEX_FORMAT.R16_SNORM;
|
||||
case SurfaceFormat.R16_UINT: return TEX_FORMAT.R16_UINT;
|
||||
case SurfaceFormat.R16_SINT: return TEX_FORMAT.R16_SINT;
|
||||
case SurfaceFormat.R16_FLOAT: return TEX_FORMAT.R16_FLOAT;
|
||||
case SurfaceFormat.R8_G8_UNORM: return TEX_FORMAT.R8G8_UNORM;
|
||||
case SurfaceFormat.R8_G8_SNORM: return TEX_FORMAT.R8G8_SNORM;
|
||||
case SurfaceFormat.ETC1_UNORM: return TEX_FORMAT.ETC1_UNORM;
|
||||
|
@ -1434,7 +1437,10 @@ namespace FirstPlugin
|
|||
|
||||
case SurfaceFormat.Invalid: throw new Exception("Invalid Format");
|
||||
default:
|
||||
throw new Exception($"Cannot convert format {surfaceFormat}");
|
||||
//Unsupported, skip for now
|
||||
return TEX_FORMAT.R8G8B8A8_UNORM;
|
||||
|
||||
// throw new Exception($"Cannot convert format {surfaceFormat}");
|
||||
}
|
||||
}
|
||||
public override void OnClick(TreeView treeView)
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue