0
0
Fork 0
This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
ryujinx-final/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs
2020-01-09 02:13:00 +01:00

22 lines
No EOL
459 B
C#

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;
}
}
}