mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Experimental GPU overclock
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using NvAPIWrapper.Native.Helpers;
|
||||
|
||||
namespace NvAPIWrapper.Native.Display.Structures
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains monitor VCDB capabilities
|
||||
/// </summary>
|
||||
public struct MonitorVCDBCapabilities
|
||||
{
|
||||
private readonly byte[] _data;
|
||||
|
||||
internal MonitorVCDBCapabilities(byte[] data)
|
||||
{
|
||||
if (data.Length != 49)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(data));
|
||||
}
|
||||
|
||||
_data = data;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a boolean value indicating RGB range quantization
|
||||
/// </summary>
|
||||
public bool QuantizationRangeRGB
|
||||
{
|
||||
get => _data[0].GetBit(1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a boolean value indicating Ycc range quantization
|
||||
/// </summary>
|
||||
public bool QuantizationRangeYcc
|
||||
{
|
||||
get => _data[0].GetBit(0);
|
||||
}
|
||||
|
||||
public byte ScanInfoConsumerElectronicsVideoFormats
|
||||
{
|
||||
get => (byte)_data[0].GetBits(6, 2);
|
||||
}
|
||||
|
||||
public byte ScanInfoInformationTechnologyVideoFormats
|
||||
{
|
||||
get => (byte)_data[0].GetBits(4, 2);
|
||||
}
|
||||
|
||||
public byte ScanInfoPreferredVideoFormat
|
||||
{
|
||||
get => (byte)_data[0].GetBits(2, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user