aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Graphics3d/Texture/LinearSwizzle.cs
diff options
context:
space:
mode:
authorgdk <gab.dark.100@gmail.com>2019-10-13 03:02:07 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit1876b346fea647e8284a66bb6d62c38801035cff (patch)
tree6eeff094298cda84d1613dc5ec0691e51d7b35f1 /Ryujinx.Graphics/Graphics3d/Texture/LinearSwizzle.cs
parentf617fb542a0e3d36012d77a4b5acbde7b08902f2 (diff)
Initial work
Diffstat (limited to 'Ryujinx.Graphics/Graphics3d/Texture/LinearSwizzle.cs')
-rw-r--r--Ryujinx.Graphics/Graphics3d/Texture/LinearSwizzle.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/Ryujinx.Graphics/Graphics3d/Texture/LinearSwizzle.cs b/Ryujinx.Graphics/Graphics3d/Texture/LinearSwizzle.cs
deleted file mode 100644
index fb1bd098..00000000
--- a/Ryujinx.Graphics/Graphics3d/Texture/LinearSwizzle.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-
-namespace Ryujinx.Graphics.Texture
-{
- class LinearSwizzle : ISwizzle
- {
- private int _pitch;
- private int _bpp;
-
- private int _sliceSize;
-
- public LinearSwizzle(int pitch, int bpp, int width, int height)
- {
- _pitch = pitch;
- _bpp = bpp;
- _sliceSize = width * height * bpp;
- }
-
- public void SetMipLevel(int level)
- {
- throw new NotImplementedException();
- }
-
- public int GetMipOffset(int level)
- {
- if (level == 1)
- return _sliceSize;
- throw new NotImplementedException();
- }
-
- public int GetImageSize(int mipsCount)
- {
- int size = GetMipOffset(mipsCount);
-
- size = (size + 0x1fff) & ~0x1fff;
-
- return size;
- }
-
- public int GetSwizzleOffset(int x, int y, int z)
- {
- return z * _sliceSize + x * _bpp + y * _pitch;
- }
- }
-} \ No newline at end of file