Experimental GPU overclock

This commit is contained in:
Serge
2023-05-06 14:40:52 +02:00
parent 8e1099545a
commit c61f4d1608
497 changed files with 46937 additions and 232 deletions

View File

@@ -0,0 +1,37 @@
using System.Runtime.InteropServices;
using NvAPIWrapper.Native.Helpers;
namespace NvAPIWrapper.Native.GPU.Structures
{
/// <summary>
/// Holds information about the clock frequency of an specific clock domain
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 8)]
public struct ClockDomainInfo
{
internal readonly uint _IsPresent;
internal readonly uint _Frequency;
/// <summary>
/// Gets a boolean value that indicates if this clock domain is present on this GPU and with the requested clock type.
/// </summary>
public bool IsPresent
{
get => _IsPresent.GetBit(0);
}
/// <summary>
/// Gets the clock frequency in kHz
/// </summary>
public uint Frequency
{
get => _Frequency;
}
/// <inheritdoc />
public override string ToString()
{
return IsPresent ? $"{_Frequency:N0} kHz" : "N/A";
}
}
}