mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 22:40:27 +00:00
Add ftex support for R8G8_SNORM
This commit is contained in:
parent
afe0fc2e3f
commit
2e9632277b
5 changed files with 3 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -624,6 +624,7 @@ namespace Bfres.Structs
|
|||
case TEX_FORMAT.R16_UNORM: return GX2SurfaceFormat.TCD_R16_UNorm;
|
||||
case TEX_FORMAT.R32_FLOAT: return GX2SurfaceFormat.TCD_R32_Float;
|
||||
case TEX_FORMAT.R8G8_UNORM: return GX2SurfaceFormat.TC_R8_G8_UNorm;
|
||||
case TEX_FORMAT.R8G8_SNORM: return GX2SurfaceFormat.TC_R8_G8_SNorm;
|
||||
case TEX_FORMAT.R8_UNORM: return GX2SurfaceFormat.TC_R8_UNorm;
|
||||
case TEX_FORMAT.A8_UNORM: return GX2SurfaceFormat.TC_R8_UNorm;
|
||||
case TEX_FORMAT.B8G8R8A8_UNORM: return GX2SurfaceFormat.TCS_R8_G8_B8_A8_UNorm;
|
||||
|
@ -660,6 +661,7 @@ namespace Bfres.Structs
|
|||
case GX2SurfaceFormat.TCD_R32_Float: return TEX_FORMAT.R32_FLOAT;
|
||||
case GX2SurfaceFormat.T_R4_G4_UNorm: return TEX_FORMAT.R4G4_UNORM;
|
||||
case GX2SurfaceFormat.TC_R8_G8_UNorm: return TEX_FORMAT.R8G8_UNORM;
|
||||
case GX2SurfaceFormat.TC_R8_G8_SNorm: return TEX_FORMAT.R8G8_SNORM;
|
||||
case GX2SurfaceFormat.TC_R8_UNorm: return TEX_FORMAT.R8_UNORM;
|
||||
case GX2SurfaceFormat.TC_R16_G16_B16_A16_Float: return TEX_FORMAT.R16G16B16A16_FLOAT;
|
||||
case GX2SurfaceFormat.Invalid: throw new Exception("Invalid Format");
|
||||
|
|
|
@ -34,6 +34,7 @@ namespace FirstPlugin
|
|||
formatComboBox.Items.Add(GX2.GX2SurfaceFormat.TC_R4_G4_B4_A4_UNORM);
|
||||
formatComboBox.Items.Add(GX2.GX2SurfaceFormat.TC_R8_UNORM);
|
||||
formatComboBox.Items.Add(GX2.GX2SurfaceFormat.TC_R8_G8_UNORM);
|
||||
formatComboBox.Items.Add(GX2.GX2SurfaceFormat.TC_R8_G8_SNORM);
|
||||
|
||||
formatComboBox.Items.Add(GX2.GX2SurfaceFormat.T_BC1_UNORM);
|
||||
formatComboBox.Items.Add(GX2.GX2SurfaceFormat.T_BC1_SRGB);
|
||||
|
|
Loading…
Reference in a new issue