mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 03:16:54 +02:00
refactor cache/split responsibilities
This commit is contained in:
@@ -40,10 +40,10 @@ public:
|
||||
}
|
||||
return m_pool[id];
|
||||
}
|
||||
void DeleteAll();
|
||||
|
||||
private:
|
||||
void Create(int id);
|
||||
void DeleteAll();
|
||||
|
||||
VulkanCommandPool* m_pool[GraphicContext::QUEUES_NUM] = {};
|
||||
};
|
||||
@@ -78,6 +78,12 @@ void GraphicsRenderInit() {
|
||||
g_render_ctx = new RenderContext;
|
||||
}
|
||||
|
||||
void GraphicsRenderReleaseThreadCommandPools() {
|
||||
if (g_render_ctx != nullptr) {
|
||||
g_command_pool.DeleteAll();
|
||||
}
|
||||
}
|
||||
|
||||
void GraphicsRenderCreateContext() {
|
||||
EXIT_IF(g_render_ctx == nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user