1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-10 20:06:40 +00:00
Ryujinx/Ryujinx.HLE/Gpu/Texture/LinearSwizzle.cs

19 lines
379 B
C#
Raw Normal View History

namespace Ryujinx.HLE.Gpu.Texture
{
class LinearSwizzle : ISwizzle
{
private int Pitch;
private int Bpp;
public LinearSwizzle(int Pitch, int Bpp)
{
this.Pitch = Pitch;
this.Bpp = Bpp;
}
public int GetSwizzleOffset(int X, int Y)
{
return X * Bpp + Y * Pitch;
}
}
}