mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 19:13:04 +00:00
b9aa3966c0
interpreter, and a rewrite of the GPU code.
20 lines
No EOL
379 B
C#
20 lines
No EOL
379 B
C#
namespace Ryujinx.Graphics.Gpu
|
|
{
|
|
class LinearSwizzle : ISwizzle
|
|
{
|
|
private int Bpp;
|
|
private int Stride;
|
|
|
|
public LinearSwizzle(int Width, int Bpp)
|
|
{
|
|
this.Bpp = Bpp;
|
|
|
|
Stride = Width * Bpp;
|
|
}
|
|
|
|
public int GetSwizzleOffset(int X, int Y)
|
|
{
|
|
return X * Bpp + Y * Stride;
|
|
}
|
|
}
|
|
} |