mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-09-11 10:18:52 +02:00
50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
|
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;
|
|||
|
}
|
|||
|
}
|