Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
19 lines
645 B
C#
19 lines
645 B
C#
using Titano.Core.Windows.Dxgi;
|
|
using Titano.Testing;
|
|
|
|
namespace Titano.Core.Windows.Tests.MediaFoundation;
|
|
|
|
public sealed class GpuAdaptersTests(TestContext context)
|
|
{
|
|
[Test]
|
|
[WindowsOnly]
|
|
public void EnumeratesAtLeastTheBasicRenderDriver()
|
|
{
|
|
var adapters = GpuAdapters.Enumerate();
|
|
foreach (var a in adapters)
|
|
context.Log($"{a.Description} vendor=0x{a.VendorId:X4} device=0x{a.DeviceId:X4} vram={a.DedicatedVideoMemory >> 20} MiB software={a.IsSoftware}");
|
|
Assert.NotEmpty(adapters);
|
|
Assert.True(adapters.All(a => a.Description.Length > 0 && !a.Description.Contains('\0')));
|
|
}
|
|
}
|