TextureDecoder.cs 547 B

12345678910111213141516171819
  1. using System;
  2. namespace Ryujinx.Graphics.Gal.Texture
  3. {
  4. static class TextureDecoder
  5. {
  6. public static byte[] Decode(GalTexture Texture)
  7. {
  8. switch (Texture.Format)
  9. {
  10. case GalTextureFormat.BC1: return BCn.DecodeBC1(Texture, 0);
  11. case GalTextureFormat.BC2: return BCn.DecodeBC2(Texture, 0);
  12. case GalTextureFormat.BC3: return BCn.DecodeBC3(Texture, 0);
  13. }
  14. throw new NotImplementedException(Texture.Format.ToString());
  15. }
  16. }
  17. }