mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-26 11:41:29 +01:00
19 lines
No EOL
376 B
C#
19 lines
No EOL
376 B
C#
namespace Ryujinx.Graphics.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;
|
|
}
|
|
}
|
|
} |