Moved few codes to RenderPassManager from GPUDevice
This commit is contained in:
@@ -44,6 +44,7 @@ class FontSource;
|
||||
class Window;
|
||||
class VulkanInstance;
|
||||
|
||||
class RenderPassManager;
|
||||
class TextureManager;
|
||||
|
||||
class SwapchainModule;
|
||||
@@ -75,6 +76,7 @@ protected:
|
||||
|
||||
protected:
|
||||
|
||||
RenderPassManager * render_pass_manager =nullptr;
|
||||
TextureManager * texture_manager =nullptr;
|
||||
|
||||
protected:
|
||||
@@ -101,6 +103,7 @@ public: //module
|
||||
|
||||
public: //manager
|
||||
|
||||
RenderPassManager *GetRenderPassManager(){return render_pass_manager;} ///<取得渲染通道管理器
|
||||
TextureManager *GetTextureManager(){return texture_manager;} ///<取得纹理管理器
|
||||
|
||||
public:
|
||||
|
@@ -35,14 +35,6 @@ private:
|
||||
|
||||
GPUDeviceAttribute *attr;
|
||||
|
||||
private:
|
||||
|
||||
RenderPassManager *render_pass_manage;
|
||||
RenderPass *device_render_pass;
|
||||
|
||||
void InitRenderPassManage();
|
||||
void ClearRenderPassManage();
|
||||
|
||||
private:
|
||||
|
||||
VkCommandBuffer CreateCommandBuffer(const AnsiString &);
|
||||
@@ -71,8 +63,6 @@ public:
|
||||
const VkColorSpaceKHR GetColorSpace ()const {return attr->surface_format.colorSpace;}
|
||||
VkQueue GetGraphicsQueue () {return attr->graphics_queue;}
|
||||
|
||||
RenderPass * GetRenderPass () {return device_render_pass;}
|
||||
|
||||
void WaitIdle ()const {vkDeviceWaitIdle(attr->device);}
|
||||
|
||||
DebugUtils * GetDebugUtils (){return attr->debug_utils;}
|
||||
|
@@ -32,6 +32,8 @@ private:
|
||||
const List<VkSubpassDependency> &dependency,
|
||||
const RenderbufferInfo *);
|
||||
|
||||
public:
|
||||
|
||||
RenderPass * AcquireRenderPass( const RenderbufferInfo *,const uint subpass_count=2);
|
||||
};//class RenderPassManager
|
||||
VK_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user