mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
using System.Runtime.InteropServices;
|
|
using NvAPIWrapper.Native.Attributes;
|
|
using NvAPIWrapper.Native.General.Structures;
|
|
using NvAPIWrapper.Native.Interfaces;
|
|
using NvAPIWrapper.Native.Interfaces.GPU;
|
|
|
|
namespace NvAPIWrapper.Native.GPU.Structures
|
|
{
|
|
/// <summary>
|
|
/// Holds information about the system's display driver memory.
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
[StructureVersion(1)]
|
|
public struct DisplayDriverMemoryInfoV1 : IInitializable, IDisplayDriverMemoryInfo
|
|
{
|
|
internal StructureVersion _Version;
|
|
internal readonly uint _DedicatedVideoMemory;
|
|
internal readonly uint _AvailableDedicatedVideoMemory;
|
|
internal readonly uint _SystemVideoMemory;
|
|
internal readonly uint _SharedSystemMemory;
|
|
|
|
/// <inheritdoc />
|
|
public uint DedicatedVideoMemoryInkB
|
|
{
|
|
get => _DedicatedVideoMemory;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public uint AvailableDedicatedVideoMemoryInkB
|
|
{
|
|
get => _AvailableDedicatedVideoMemory;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public uint SystemVideoMemoryInkB
|
|
{
|
|
get => _SystemVideoMemory;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public uint SharedSystemMemoryInkB
|
|
{
|
|
get => _SharedSystemMemory;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public uint CurrentAvailableDedicatedVideoMemoryInkB
|
|
{
|
|
get => _AvailableDedicatedVideoMemory;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override string ToString()
|
|
{
|
|
return $"{AvailableDedicatedVideoMemoryInkB / 1024} MB / {DedicatedVideoMemoryInkB / 1024} MB";
|
|
}
|
|
}
|
|
} |