Add memory info for Amd GPUs (#1326)

* Add DedicatedVideoMemorySize to D3D

* Add memory info for Amd GPUs
This commit is contained in:
Emerson Pinter
2024-05-02 23:55:39 +02:00
committed by GitHub
parent b6d2c204b8
commit 92bfa55f12
3 changed files with 81 additions and 2 deletions
@@ -99,6 +99,7 @@ internal static class D3DDisplayDevice
return false;
deviceInfo.GpuSharedLimit = segmentSizeInfo.SharedSystemMemorySize;
deviceInfo.GpuVideoMemoryLimit = segmentSizeInfo.DedicatedVideoMemorySize;
deviceInfo.GpuDedicatedLimit = segmentSizeInfo.DedicatedSystemMemorySize;
for (uint segmentId = 0; segmentId < segmentCount; segmentId++)
@@ -273,6 +274,7 @@ internal static class D3DDisplayDevice
{
public ulong GpuSharedLimit;
public ulong GpuDedicatedLimit;
public ulong GpuVideoMemoryLimit;
public ulong GpuSharedUsed;
public ulong GpuDedicatedUsed;