From f527afdb7abf70010760eb85b7349e5ae26aa74a Mon Sep 17 00:00:00 2001 From: Greg Wells Date: Wed, 21 May 2025 10:47:42 -0400 Subject: [PATCH] delete old metal instance --- .../metal/src/core/metal_instance.cpp | 20 ------------------- rendering_api/metal/src/core/metal_instance.h | 18 ----------------- 2 files changed, 38 deletions(-) delete mode 100644 rendering_api/metal/src/core/metal_instance.cpp delete mode 100644 rendering_api/metal/src/core/metal_instance.h diff --git a/rendering_api/metal/src/core/metal_instance.cpp b/rendering_api/metal/src/core/metal_instance.cpp deleted file mode 100644 index f55685f..0000000 --- a/rendering_api/metal/src/core/metal_instance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include -#include "bridge/metal_bridge.h" -#include "metal_instance.h" - -GN_EXPORT gnReturnCode gnCreateInstanceFn(gnInstance* instance) { - if (instance->instance == nullptr) instance->instance = new gnPlatformInstanceData(); - - return GN_SUCCESS; -} - -GN_EXPORT void gnDestroyInstanceFn(gnInstance& instance) { - -} - -GN_EXPORT gnReturnCode gnCreateMacOSWindowSurfaceFn(gnInstance& instance, NS::Window* window, NS::View* view) { - if (instance.instance == nullptr) instance.instance = new gnPlatformInstanceData(); - instance.instance->metalContentView = view; - return GN_SUCCESS; -} diff --git a/rendering_api/metal/src/core/metal_instance.h b/rendering_api/metal/src/core/metal_instance.h deleted file mode 100644 index 6d9ad87..0000000 --- a/rendering_api/metal/src/core/metal_instance.h +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once -#ifndef OBJECT_C_CODE -#include -#include -#include -#include - -#include -#include -#include -#endif - -struct GLFWwindow; - -struct gnPlatformInstanceData { - NS::View* metalContentView; - MTL::RenderPipelineState* framebufferRenderer, *testSquareRenderer; -};