mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-30 05:53:01 +00:00
22 lines
No EOL
459 B
C#
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;
|
|
}
|
|
}
|
|
} |