mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-25 08:47:42 +02:00
21 lines
580 B
C#
21 lines
580 B
C#
namespace Ryujinx.Common.Configuration
|
|
{
|
|
public enum VSyncMode
|
|
{
|
|
Switch,
|
|
Unbounded,
|
|
Custom
|
|
}
|
|
|
|
public static class VSyncModeExtensions
|
|
{
|
|
public static VSyncMode Next(this VSyncMode vsync, bool customEnabled = false) =>
|
|
vsync switch
|
|
{
|
|
VSyncMode.Switch => customEnabled ? VSyncMode.Custom : VSyncMode.Unbounded,
|
|
VSyncMode.Unbounded => VSyncMode.Switch,
|
|
VSyncMode.Custom => VSyncMode.Unbounded,
|
|
_ => VSyncMode.Switch
|
|
};
|
|
}
|
|
}
|