feat(windows): add Media Foundation encoder provider/session and DXGI adapter enumeration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 10:05:36 +00:00
1 parent 04f31e7f43
commit 45518e8e4e
9 files changed
+1579

No files matched your search

@@ -0,0 +1,18 @@
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')));
}
}