aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Application.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-19 01:00:48 +0200
committerhachem <im@hachem.wtf>2026-08-19 01:00:48 +0200
commit5c5fc10d8938fd2da1922f01c638d42e70eb1ab1 (patch)
tree57ef5be020247c817079d010faae9a4635c8416a /src/Core/Application.cpp
parentd3c54837fc8b4ef0027aa6757c303aa673944e6f (diff)
[feat]: support mac arm
Diffstat (limited to 'src/Core/Application.cpp')
-rw-r--r--src/Core/Application.cpp13
1 files changed, 11 insertions, 2 deletions
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 <GLFW/glfw3.h>
#include <ImGuizmo.h>
+#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();