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,31 @@
using System;
using System.Runtime.InteropServices;
namespace NvAPIWrapper.Native.General.Structures
{
[StructLayout(LayoutKind.Sequential)]
internal struct StructureVersion
{
private readonly uint _version;
public int VersionNumber
{
get => (int) (_version >> 16);
}
public int StructureSize
{
get => (int) (_version & ~(0xFFFF << 16));
}
public StructureVersion(int version, Type structureType)
{
_version = (uint) (Marshal.SizeOf(structureType) | (version << 16));
}
public override string ToString()
{
return $"Structure Size: {StructureSize} Bytes, Version: {VersionNumber}";
}
}
}