add creation of SDR color profile, add NVIDIA HDR10+ support, fix MinTML/MaxTML, add LG TPC/GSR actions, add LG/Samsung trigger events

This commit is contained in:
Vincent Maas committed 2024-02-11 14:38:53 +01:00
1 parent c958e6cb04
commit b1120c8d49
39 files changed
+1323 -349

No files matched your search

@@ -1,10 +1,10 @@
using System;
using NvAPIWrapper.Native.Helpers;
using NvAPIWrapper.Native.Helpers;
using System;
namespace NvAPIWrapper.Native.Attributes
{
[AttributeUsage(AttributeTargets.Delegate)]
internal class FunctionIdAttribute : Attribute
public class FunctionIdAttribute : Attribute
{
public FunctionIdAttribute(FunctionId functionId)
{
+1 -1
View File
@@ -1,10 +1,10 @@
using System;
using NvAPIWrapper.Native.Exceptions;
using NvAPIWrapper.Native.General;
using NvAPIWrapper.Native.General.Structures;
using NvAPIWrapper.Native.Helpers;
using NvAPIWrapper.Native.Helpers.Structures;
using NvAPIWrapper.Native.Interfaces.General;
using System;
namespace NvAPIWrapper.Native
{
@@ -1,13 +1,13 @@
using NvAPIWrapper.Native.Attributes;
using NvAPIWrapper.Native.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using NvAPIWrapper.Native.Attributes;
using NvAPIWrapper.Native.Exceptions;
namespace NvAPIWrapper.Native.Helpers
{
internal static class DelegateFactory
public static class DelegateFactory
{
private static readonly Dictionary<KeyValuePair<FunctionId, Type>, object> Delegates =
new Dictionary<KeyValuePair<FunctionId, Type>, object>();
@@ -37,7 +37,7 @@ namespace NvAPIWrapper.Native.Helpers
return Delegates[delegateKey] as T;
}
var ptr = NvAPI_QueryInterface((uint) functionId.FunctionId);
var ptr = NvAPI_QueryInterface((uint)functionId.FunctionId);
if (ptr != IntPtr.Zero)
{
+7 -1
View File
@@ -3,7 +3,7 @@
namespace NvAPIWrapper.Native.Helpers
{
[SuppressMessage("ReSharper", "InconsistentNaming")]
internal enum FunctionId : uint
public enum FunctionId : uint
{
// -------------------------------------------------
// Public NvAPI Functions
@@ -702,6 +702,12 @@ namespace NvAPIWrapper.Native.Helpers
Unknown_F1D2777B = 0xf1d2777b, // `Unknown(hDisplayHandle, *mut hGpu)` maybe?
NvAPI_GPU_QueryThermalSensors = 0x65FE3AAD,
// CC: added functions
NvAPI_Disp_SetOutputMode = 0x98E7661A,
NvAPI_Disp_GetOutputMode = 0x81FED88D,
NvAPI_Disp_SetDitherControl = 0xDF0DFCDD,
NvAPI_Disp_GetDitherControl = 0x932AC8FB,
#endregion
NvAPI_Unload = 0xD22BDD7E,