Metal: Hook up the backend on Mac, with the null GPU for now

Selectable with --graphics=metal, the backend choice in settings and the
Mac menu bar. SDL creates a Metal view for it, and headless renders
offscreen. Games run on the null GPU until there's a GPU/Metal.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-19 12:02:22 +02:00
1 parent 16ed2ad55a
commit 8d7ce57fa8
10 files changed
+59 -5

No files matched your search

+3
View File
@@ -312,6 +312,9 @@ void EmuScreen::ProcessGameBoot(const Path &filename) {
coreParam.gpuCore = GPUCORE_VULKAN;
break;
#endif
case GPUBackend::METAL:
coreParam.gpuCore = GPUCORE_METAL;
break;
}
// Preserve the existing graphics context.