aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL
diff options
context:
space:
mode:
authorgreggameplayer <33609333+greggameplayer@users.noreply.github.com>2018-07-16 20:09:34 +0200
committergdkchan <gab.dark.100@gmail.com>2018-07-16 15:09:34 -0300
commite71da4fb747aaff45eafd40bbbd62638b4d659c7 (patch)
tree6681e7341a1393ba1d154aea68fbb9d0d28704a3 /Ryujinx.Graphics/Gal/OpenGL
parent3e13b40b353a61fe57d1bc1440e1db9bc133df08 (diff)
Implement BC6H_SF16 & BC6H_UF16 Texture Formats (#255)
* Implement BC6H_SF16 & BC6H_UF16 * correct coding style (1/5) * correct coding style (2/5) * correct coding style (3/5) * correct coding style (4/5) * correct coding style (5/5)
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs16
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs4
2 files changed, 12 insertions, 8 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs
index 8f189d2b..5d20c931 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLEnumConverter.cs
@@ -148,12 +148,14 @@ namespace Ryujinx.Graphics.Gal.OpenGL
{
switch (Format)
{
- case GalTextureFormat.BC7U: return InternalFormat.CompressedRgbaBptcUnorm;
- case GalTextureFormat.BC1: return InternalFormat.CompressedRgbaS3tcDxt1Ext;
- case GalTextureFormat.BC2: return InternalFormat.CompressedRgbaS3tcDxt3Ext;
- case GalTextureFormat.BC3: return InternalFormat.CompressedRgbaS3tcDxt5Ext;
- case GalTextureFormat.BC4: return InternalFormat.CompressedRedRgtc1;
- case GalTextureFormat.BC5: return InternalFormat.CompressedRgRgtc2;
+ case GalTextureFormat.BC6H_UF16: return InternalFormat.CompressedRgbBptcUnsignedFloat;
+ case GalTextureFormat.BC6H_SF16: return InternalFormat.CompressedRgbBptcSignedFloat;
+ case GalTextureFormat.BC7U: return InternalFormat.CompressedRgbaBptcUnorm;
+ case GalTextureFormat.BC1: return InternalFormat.CompressedRgbaS3tcDxt1Ext;
+ case GalTextureFormat.BC2: return InternalFormat.CompressedRgbaS3tcDxt3Ext;
+ case GalTextureFormat.BC3: return InternalFormat.CompressedRgbaS3tcDxt5Ext;
+ case GalTextureFormat.BC4: return InternalFormat.CompressedRedRgtc1;
+ case GalTextureFormat.BC5: return InternalFormat.CompressedRgRgtc2;
}
throw new NotImplementedException(Format.ToString());
@@ -264,4 +266,4 @@ namespace Ryujinx.Graphics.Gal.OpenGL
throw new ArgumentException(nameof(BlendFactor));
}
}
-} \ No newline at end of file
+}
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
index 5caca6ec..ac30e6fd 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLTexture.cs
@@ -212,6 +212,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
{
switch (Format)
{
+ case GalTextureFormat.BC6H_UF16:
+ case GalTextureFormat.BC6H_SF16:
case GalTextureFormat.BC7U:
case GalTextureFormat.BC1:
case GalTextureFormat.BC2:
@@ -224,4 +226,4 @@ namespace Ryujinx.Graphics.Gal.OpenGL
return false;
}
}
-} \ No newline at end of file
+}