add Nvidia overclocking options, integrate NvAPIWrapper/NvidiaML to enable and extend overclocking (curve), some other fixes

This commit is contained in:
Vincent Maas committed 2023-03-03 14:40:56 +01:00
1 parent 1c5095777c
commit 7fcf154601
352 files changed
+37643 -144

No files matched your search

@@ -0,0 +1,27 @@
using System;
using NvAPIWrapper.Native.General;
namespace NvAPIWrapper.Native.Exceptions
{
/// <summary>
/// Represents errors that raised by NVIDIA Api
/// </summary>
public class NVIDIAApiException : Exception
{
internal NVIDIAApiException(Status status)
{
Status = status;
}
/// <inheritdoc />
public override string Message
{
get => GeneralApi.GetErrorMessage(Status) ?? Status.ToString();
}
/// <summary>
/// Gets NVIDIA Api exception status code
/// </summary>
public Status Status { get; }
}
}
@@ -0,0 +1,14 @@
using System;
namespace NvAPIWrapper.Native.Exceptions
{
/// <summary>
/// Represents errors that raised by NvAPIWrapper
/// </summary>
public class NVIDIANotSupportedException : NotSupportedException
{
internal NVIDIANotSupportedException(string message) : base(message)
{
}
}
}