port DeviceRenderPassManage

This commit is contained in:
2024-11-09 00:12:03 +08:00
parent 6b466f63cf
commit 5d3f2cfdfd
2 changed files with 13 additions and 12 deletions

View File

@@ -1,16 +1,14 @@
#ifndef HGL_VULKAN_DEVICE_RENDERPASS_MANAGE_INCLUDE
#define HGL_VULKAN_DEVICE_RENDERPASS_MANAGE_INCLUDE
#pragma once
#include<hgl/graph/VK.h>
#include<hgl/graph/module/GraphModule.h>
#include<hgl/type/Map.h>
#include<hgl/util/hash/Hash.h>
VK_NAMESPACE_BEGIN
using RenderPassHASHCode=util::HashCodeSHA1LE;
class DeviceRenderPassManage
class DeviceRenderPassManage:public GraphModule
{
VkDevice device;
VkPipelineCache pipeline_cache;
util::Hash *hash;
@@ -21,9 +19,12 @@ private:
friend class GPUDevice;
DeviceRenderPassManage(VkDevice,VkPipelineCache);
//DeviceRenderPassManage(VkDevice,VkPipelineCache);
GRAPH_MODULE_CONSTRUCT(DeviceRenderPassManage)
~DeviceRenderPassManage();
bool Init() override;
private:
RenderPass * CreateRenderPass( const List<VkAttachmentDescription> &desc_list,
@@ -34,4 +35,3 @@ private:
RenderPass * AcquireRenderPass( const RenderbufferInfo *,const uint subpass_count=2);
};//class DeviceRenderPassManage
VK_NAMESPACE_END
#endif//HGL_VULKAN_DEVICE_RENDERPASS_MANAGE_INCLUDE