Ryujinx/Ryujinx.Graphics.Gpu/State/CopyTextureControl.cs

22 lines
459 B
C#
Raw Normal View History

2019-10-13 08:02:07 +02:00
namespace Ryujinx.Graphics.Gpu.State
{
/// <summary>
/// Texture to texture copy control.
/// </summary>
2019-10-13 08:02:07 +02:00
struct CopyTextureControl
{
#pragma warning disable CS0649
2019-10-13 08:02:07 +02:00
public uint Packed;
#pragma warning restore CS0649
2019-10-13 08:02:07 +02:00
public bool UnpackOriginCorner()
{
return (Packed & 1u) != 0;
}
2019-10-13 08:02:07 +02:00
public bool UnpackLinearFilter()
{
return (Packed & (1u << 4)) != 0;
}
}
}