mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-30 20:43:05 +00:00
19 lines
No EOL
371 B
C#
19 lines
No EOL
371 B
C#
namespace Ryujinx.HLE.Gpu
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
} |