From f8c0848ec3e0c05d11c1b62c15e79ed80339c208 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 11 Oct 2021 19:08:42 -0400 Subject: [PATCH] XTX : Support BC6 --- File_Format_Library/FileFormats/Texture/XTX.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/File_Format_Library/FileFormats/Texture/XTX.cs b/File_Format_Library/FileFormats/Texture/XTX.cs index 013805f2..843559fb 100644 --- a/File_Format_Library/FileFormats/Texture/XTX.cs +++ b/File_Format_Library/FileFormats/Texture/XTX.cs @@ -161,6 +161,7 @@ namespace FirstPlugin BC4S = 0x0000004a, BC5U = 0x0000004b, BC5S = 0x0000004c, + BC6U = 0x00000050, BC7U = 0x0000004d, BGRA8 = 0x0000006d, @@ -562,6 +563,7 @@ namespace FirstPlugin case TEX_FORMAT.BC4_SNORM: return XTXImageFormat.BC4S; case TEX_FORMAT.BC5_UNORM: return XTXImageFormat.BC5U; case TEX_FORMAT.BC7_UNORM: return XTXImageFormat.BC7U; + case TEX_FORMAT.BC6H_UF16: return XTXImageFormat.BC6U; case TEX_FORMAT.R8_UNORM: return XTXImageFormat.NVN_FORMAT_R8; case TEX_FORMAT.R8G8_UNORM: return XTXImageFormat.NVN_FORMAT_RG8; case TEX_FORMAT.R10G10B10A2_UNORM: return XTXImageFormat.NVN_FORMAT_RGB10A2; @@ -619,6 +621,7 @@ namespace FirstPlugin case XTXImageFormat.BC5U: return TEX_FORMAT.BC5_UNORM; case XTXImageFormat.BC5S: return TEX_FORMAT.BC5_SNORM; case XTXImageFormat.BC7U: return TEX_FORMAT.BC7_UNORM; + case XTXImageFormat.BC6U: return TEX_FORMAT.BC6H_UF16; case XTXImageFormat.NVN_FORMAT_R8: return TEX_FORMAT.R8_UNORM; case XTXImageFormat.NVN_FORMAT_RG8: return TEX_FORMAT.R8G8_UNORM; case XTXImageFormat.NVN_FORMAT_RGB10A2: return TEX_FORMAT.R10G10B10A2_UNORM;