From 75fb0dd67214fa3cfe0e942758af8480c11a0cc1 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 9 Nov 2024 00:09:29 +0800 Subject: [PATCH] removed GraphManager.h/.cpp --- inc/hgl/graph/manager/GraphManager.h | 24 ------------------------ src/SceneGraph/manager/GraphManager.cpp | 14 -------------- 2 files changed, 38 deletions(-) delete mode 100644 inc/hgl/graph/manager/GraphManager.h delete mode 100644 src/SceneGraph/manager/GraphManager.cpp diff --git a/inc/hgl/graph/manager/GraphManager.h b/inc/hgl/graph/manager/GraphManager.h deleted file mode 100644 index 3efb599e..00000000 --- a/inc/hgl/graph/manager/GraphManager.h +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once - -#include - -VK_NAMESPACE_BEGIN - -class GraphManager -{ - GPUDevice *device; - -public: - - VkDevice GetVkDevice (); ///<取得Vulkan设备句柄 - GPUDevice * GetDevice ()noexcept{return device;} ///<取得GPU设备指针 - const GPUPhysicalDevice * GetPhysicalDevice ()const; ///<取得GPU物理设备指针 - - -public: - - GraphManager(GPUDevice *dev){device=dev;} - virtual ~GraphManager()=default; -};//class GraphManager - -VK_NAMESPACE_END diff --git a/src/SceneGraph/manager/GraphManager.cpp b/src/SceneGraph/manager/GraphManager.cpp deleted file mode 100644 index 398f9da2..00000000 --- a/src/SceneGraph/manager/GraphManager.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include - -VK_NAMESPACE_BEGIN -VkDevice GraphManager::GetVkDevice() -{ - return device->GetDevice(); -} - -const GPUPhysicalDevice *GraphManager::GetPhysicalDevice()const -{ - return device->GetPhysicalDevice(); -} -VK_NAMESPACE_END