mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-30 08:20:47 -07:00
Initial work
This commit is contained in:
22
Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs
Normal file
22
Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs
Normal file
@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user