diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-12-30 13:10:54 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-30 17:10:54 +0100 |
| commit | c05c8e09d48eb36beef02fda885ec0fd36135463 (patch) | |
| tree | 7a83c260c275e9d445e0c2561c2894158b8620a5 /Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs | |
| parent | 1485780d90a554a9a71585ff1dd6e049b32b761e (diff) | |
Add support for the R4G4 texture format (#2956)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs b/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs index c70b2971..ce9fd75c 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureCompatibility.cs @@ -66,6 +66,11 @@ namespace Ryujinx.Graphics.Gpu.Image } } + if (!caps.SupportsR4G4Format && info.FormatInfo.Format == Format.R4G4Unorm) + { + return new FormatInfo(Format.R4G4B4A4Unorm, 1, 1, 2, 4); + } + if (info.Target == Target.Texture3D) { // The host API does not support 3D BC4/BC5 compressed formats. |
