aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/Texture/TextureDecoder.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-06-08 21:15:56 -0300
committerGitHub <noreply@github.com>2018-06-08 21:15:56 -0300
commit231fae1a4c97d7588655e9775f37c1dc9bd55fb0 (patch)
tree1c0e7b298ec33d5bf5b6a5693dd69a8c7e0bd23b /Ryujinx.Graphics/Gal/Texture/TextureDecoder.cs
parent6fe51f970501fe732276c17ed0dacb564b92a73d (diff)
Texture/Vertex/Index data cache (#132)
* Initial implementation of the texture cache * Cache vertex and index data aswell, some cleanup * Improve handling of the cache by storing cached ranges on a list for each page * Delete old data from the caches automatically, ensure that the cache is cleaned when the mapping/size changes, and some general cleanup
Diffstat (limited to 'Ryujinx.Graphics/Gal/Texture/TextureDecoder.cs')
-rw-r--r--Ryujinx.Graphics/Gal/Texture/TextureDecoder.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/Ryujinx.Graphics/Gal/Texture/TextureDecoder.cs b/Ryujinx.Graphics/Gal/Texture/TextureDecoder.cs
deleted file mode 100644
index 4e50db51..00000000
--- a/Ryujinx.Graphics/Gal/Texture/TextureDecoder.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-
-namespace Ryujinx.Graphics.Gal.Texture
-{
- static class TextureDecoder
- {
- public static byte[] Decode(GalTexture Texture)
- {
- switch (Texture.Format)
- {
- case GalTextureFormat.BC1: return BCn.DecodeBC1(Texture, 0);
- case GalTextureFormat.BC2: return BCn.DecodeBC2(Texture, 0);
- case GalTextureFormat.BC3: return BCn.DecodeBC3(Texture, 0);
- }
-
- throw new NotImplementedException(Texture.Format.ToString());
- }
- }
-} \ No newline at end of file