feat(gfx): gfx oracle dumps the retained layer list

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-07-07 19:46:54 -04:00
parent 9992a22b7b
commit 7331f12150

View File

@@ -99,6 +99,10 @@ if (args[0] == "gfx")
var gfxObjs = vm.Gfx.Objects.OrderBy(o => o.Slot).ToList();
Console.WriteLine($" gfx objects: {gfxObjs.Count} -> " +
string.Join(", ", gfxObjs.Select(o => $"0x{o.Handle:x}=slot{o.Slot}")));
var layers = vm.Gfx.SnapshotLayers();
Console.WriteLine($" layers ({layers.Count}, composite order):");
foreach (var l in layers)
Console.WriteLine($" h=0x{l.Handle:x} slot={l.Slot} src=({l.SrcX},{l.SrcY} {l.W}x{l.H}) dst=({l.DstX},{l.DstY})");
return 0;
}