diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2021-04-07 13:19:02 +0100 |
|---|---|---|
| committer | riperiperi <rhy3756547@hotmail.com> | 2021-04-18 17:34:00 +0100 |
| commit | 1239c82d2f2fa59a42561a4a278a9cdca5eca462 (patch) | |
| tree | 2885fc1498de539d9c27878ed9788bb6ecf081c5 /Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs | |
| parent | b1c3e01691507709bc4a6a23f02396f3b97803e5 (diff) | |
Forcibly enable threaded optimization on boot.
Diffstat (limited to 'Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs')
| -rw-r--r-- | Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs b/Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs new file mode 100644 index 00000000..ac188b35 --- /dev/null +++ b/Ryujinx.Common/GraphicsDriver/NVAPI/NvdrsSetting.cs @@ -0,0 +1,49 @@ +using System.Runtime.InteropServices; + +namespace Ryujinx.Common.GraphicsDriver.NVAPI +{ + enum NvdrsSettingType : uint + { + NvdrsDwordType, + NvdrsBinaryType, + NvdrsStringType, + NvdrsWstringType, + } + + enum NvdrsSettingLocation : uint + { + NvdrsCurrentProfileLocation, + NvdrsGlobalProfileLocation, + NvdrsBaseProfileLocation, + NvdrsDefaultProfileLocation, + } + + [StructLayout(LayoutKind.Explicit, Size = 0x3020)] + unsafe struct NvdrsSetting + { + [FieldOffset(0x0)] + public uint Version; + [FieldOffset(0x4)] + public NvapiUnicodeString SettingName; + [FieldOffset(0x1004)] + public Nvapi SettingId; + [FieldOffset(0x1008)] + public NvdrsSettingType SettingType; + [FieldOffset(0x100C)] + public NvdrsSettingLocation SettingLocation; + [FieldOffset(0x1010)] + public uint IsCurrentPredefined; + [FieldOffset(0x1014)] + public uint IsPredefinedValid; + + [FieldOffset(0x1018)] + public uint PredefinedValue; + [FieldOffset(0x1018)] + public NvapiUnicodeString PredefinedString; + + [FieldOffset(0x201C)] + public uint CurrentValue; + [FieldOffset(0x201C)] + public NvapiUnicodeString CurrentString; + } +} |
