mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-03 15:27:26 +00:00
18 lines
329 B
C#
18 lines
329 B
C#
|
namespace Ryujinx.Graphics.Gpu.State
|
||
|
{
|
||
|
struct RtControl
|
||
|
{
|
||
|
public uint Packed;
|
||
|
|
||
|
public int UnpackCount()
|
||
|
{
|
||
|
return (int)(Packed & 0xf);
|
||
|
}
|
||
|
|
||
|
public int UnpackPermutationIndex(int index)
|
||
|
{
|
||
|
return (int)((Packed >> (4 + index * 3)) & 7);
|
||
|
}
|
||
|
}
|
||
|
}
|