0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-10-19 19:21:41 +00:00
ryujinx-fork/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs

22 lines
459 B
C#
Raw Normal View History

2019-10-13 06:02:07 +00:00
namespace Ryujinx.Graphics.Gpu.State
{
struct CopyBufferSwizzle
{
public uint Swizzle;
public int UnpackComponentSize()
{
return (int)((Swizzle >> 16) & 3) + 1;
}
public int UnpackSrcComponentsCount()
{
return (int)((Swizzle >> 20) & 7) + 1;
}
public int UnpackDstComponentsCount()
{
return (int)((Swizzle >> 24) & 7) + 1;
}
}
}