diff options
| author | Ac_K <Acoustik666@gmail.com> | 2021-01-05 06:02:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-05 06:02:49 +0100 |
| commit | 73f6149bd6615fa2447fa09c3209598776fd7e14 (patch) | |
| tree | 25e7cd090f1a8ba76be90bf73f9c5dd8faa79193 /Ryujinx.Graphics.OpenGL/FormatTable.cs | |
| parent | 430ba6da65a781196db7d723cc88710bb7f5caf8 (diff) | |
gpu: Implement missing texture formats (#1867)
* gpu: Implement Etc2Rgba texture format
* Add more format
* Fix wrong pixel format
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/FormatTable.cs')
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/FormatTable.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.OpenGL/FormatTable.cs b/Ryujinx.Graphics.OpenGL/FormatTable.cs index 4261b495..52da3efd 100644 --- a/Ryujinx.Graphics.OpenGL/FormatTable.cs +++ b/Ryujinx.Graphics.OpenGL/FormatTable.cs @@ -96,6 +96,8 @@ namespace Ryujinx.Graphics.OpenGL Add(Format.Bc7Srgb, new FormatInfo(1, false, false, All.CompressedSrgbAlphaBptcUnorm)); Add(Format.Bc6HSfloat, new FormatInfo(1, false, false, All.CompressedRgbBptcSignedFloat)); Add(Format.Bc6HUfloat, new FormatInfo(1, false, false, All.CompressedRgbBptcUnsignedFloat)); + Add(Format.Etc2RgbaUnorm, new FormatInfo(1, false, false, All.CompressedRgba8Etc2Eac)); + Add(Format.Etc2RgbaSrgb, new FormatInfo(1, false, false, All.CompressedSrgb8Alpha8Etc2Eac)); 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)); |
