1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-28 21:26:15 +00:00

Fix BC6 Signed/Unsigned float texture formats

This commit is contained in:
gdk 2019-10-15 00:11:11 -03:00 committed by Thog
parent f90ee9b707
commit 873bb4c15a
3 changed files with 4 additions and 4 deletions

View file

@ -80,8 +80,8 @@ namespace Ryujinx.Graphics.GAL
Bc5Snorm,
Bc7Unorm,
Bc7Srgb,
Bc6HUfloat,
Bc6HSfloat,
Bc6HUfloat,
R8Uscaled,
R8Sscaled,
R16Uscaled,

View file

@ -70,8 +70,8 @@ namespace Ryujinx.Graphics.Gpu.Image
{ 0x124a8, new FormatInfo(Format.Bc5Snorm, 4, 4, 16) },
{ 0x24917, new FormatInfo(Format.Bc7Unorm, 4, 4, 16) },
{ 0xa4917, new FormatInfo(Format.Bc7Srgb, 4, 4, 16) },
{ 0x7ff90, new FormatInfo(Format.Bc6HUfloat, 4, 4, 16) },
{ 0x7ff91, new FormatInfo(Format.Bc6HSfloat, 4, 4, 16) },
{ 0x7ff90, new FormatInfo(Format.Bc6HSfloat, 4, 4, 16) },
{ 0x7ff91, new FormatInfo(Format.Bc6HUfloat, 4, 4, 16) },
{ 0x24940, new FormatInfo(Format.Astc4x4Unorm, 4, 4, 16) },
{ 0x24950, new FormatInfo(Format.Astc5x4Unorm, 5, 4, 16) },
{ 0x24941, new FormatInfo(Format.Astc5x5Unorm, 5, 5, 16) },

View file

@ -90,8 +90,8 @@ namespace Ryujinx.Graphics.OpenGL.Formats
Add(Format.Bc5Snorm, new FormatInfo(1, true, false, All.CompressedSignedRgRgtc2));
Add(Format.Bc7Unorm, new FormatInfo(1, true, false, All.CompressedRgbaBptcUnorm));
Add(Format.Bc7Srgb, new FormatInfo(1, false, false, All.CompressedSrgbAlphaBptcUnorm));
Add(Format.Bc6HUfloat, new FormatInfo(1, false, false, All.CompressedRgbBptcUnsignedFloat));
Add(Format.Bc6HSfloat, new FormatInfo(1, false, false, All.CompressedRgbBptcSignedFloat));
Add(Format.Bc6HUfloat, new FormatInfo(1, false, false, All.CompressedRgbBptcUnsignedFloat));
Add(Format.R8Uscaled, new FormatInfo(1, false, true, All.R8ui, PixelFormat.RedInteger, PixelType.UnsignedByte));
Add(Format.R8Sscaled, new FormatInfo(1, false, true, All.R8i, PixelFormat.RedInteger, PixelType.Byte));
Add(Format.R16Uscaled, new FormatInfo(1, false, true, All.R16ui, PixelFormat.RedInteger, PixelType.UnsignedShort));