From 5c5fc10d8938fd2da1922f01c638d42e70eb1ab1 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 19 Aug 2026 01:00:48 +0200 Subject: [feat]: support mac arm --- src/Core/Application.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/Core/Application.cpp') diff --git a/src/Core/Application.cpp b/src/Core/Application.cpp index eefa482..df42877 100644 --- a/src/Core/Application.cpp +++ b/src/Core/Application.cpp @@ -10,6 +10,10 @@ #include #include +#ifdef __APPLE__ +#include "Platform/Metal/MetalContext.h" +#endif + namespace Donut { Application* Application::s_Instance = nullptr; @@ -103,9 +107,14 @@ namespace Donut m_StateManager->OnEvent(event); } - void Application::OnInit() - { + void Application::OnInit() + { Logger::Init(); + +#ifdef __APPLE__ + MetalProbe(); // Phase 1: native Metal device available? + MetalComputeSelfTest(); // Phase 1: full compute dispatch + read-back works? +#endif SettingsManager::Initialize(); -- cgit v1.3