From 51a6da3d9fd954b2e8c91dc283e16c18c8038534 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 22 Jul 2023 12:16:26 +0800 Subject: [PATCH] update #include, but the codes can't compile. --- CMCore | 2 +- CMPlatform | 2 +- CMUtil | 2 +- inc/hgl/graph/SceneNode.h | 2 +- inc/hgl/graph/VKDescriptorSet.h | 1 + inc/hgl/graph/VKInstance.h | 2 +- inc/hgl/graph/VKRenderResource.h | 18 +++++++++--------- src/SceneGraph/MaterialRenderList.cpp | 2 +- 8 files changed, 16 insertions(+), 15 deletions(-) diff --git a/CMCore b/CMCore index b43c2368..b0d404bb 160000 --- a/CMCore +++ b/CMCore @@ -1 +1 @@ -Subproject commit b43c236894f0740591d38916411b4bbd83bf351a +Subproject commit b0d404bb11e83511b553c14960f5b67066d365bb diff --git a/CMPlatform b/CMPlatform index 1199a44d..07bc3eff 160000 --- a/CMPlatform +++ b/CMPlatform @@ -1 +1 @@ -Subproject commit 1199a44dd3138eb0e65bf464b5e221c8a405ab80 +Subproject commit 07bc3effc35dac639f40521c3fc58f0ed00faaf3 diff --git a/CMUtil b/CMUtil index 9ed3f1b6..31033215 160000 --- a/CMUtil +++ b/CMUtil @@ -1 +1 @@ -Subproject commit 9ed3f1b6c33a881e8cca30313294f16c44fce368 +Subproject commit 31033215854f68b2c3b690cc215423dd6b44856c diff --git a/inc/hgl/graph/SceneNode.h b/inc/hgl/graph/SceneNode.h index 5f01d131..1cc4f395 100644 --- a/inc/hgl/graph/SceneNode.h +++ b/inc/hgl/graph/SceneNode.h @@ -1,7 +1,7 @@ #ifndef HGL_GRAPH_SCENE_NODE_INCLUDE #define HGL_GRAPH_SCENE_NODE_INCLUDE -#include +#include #include #include #include diff --git a/inc/hgl/graph/VKDescriptorSet.h b/inc/hgl/graph/VKDescriptorSet.h index e5edbba9..b07404ce 100644 --- a/inc/hgl/graph/VKDescriptorSet.h +++ b/inc/hgl/graph/VKDescriptorSet.h @@ -3,6 +3,7 @@ #include #include +#include #include VK_NAMESPACE_BEGIN class DeviceBuffer; diff --git a/inc/hgl/graph/VKInstance.h b/inc/hgl/graph/VKInstance.h index 8e3590ee..5991eb3f 100644 --- a/inc/hgl/graph/VKInstance.h +++ b/inc/hgl/graph/VKInstance.h @@ -2,7 +2,7 @@ #define HGL_GRAPH_VULKAN_INSTANCE_INCLUDE #include -#include +#include #include #include #include diff --git a/inc/hgl/graph/VKRenderResource.h b/inc/hgl/graph/VKRenderResource.h index f0d72c7f..bc35a0ab 100644 --- a/inc/hgl/graph/VKRenderResource.h +++ b/inc/hgl/graph/VKRenderResource.h @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include @@ -43,14 +43,14 @@ class RenderResource Map material_by_name; Map texture_by_name; - IDResManage rm_material; ///<材质合集 - IDResManage rm_material_instance; ///<材质实例合集 - IDResManage rm_desc_sets; ///<描述符合集 - IDResManage rm_primitives; ///<图元合集 - IDResManage rm_buffers; ///<顶点缓冲区合集 - IDResManage rm_samplers; ///<采样器合集 - IDResManage rm_textures; ///<纹理合集 - IDResManage rm_renderables; ///<渲染实例集合集 + IDObjectManage rm_material; ///<材质合集 + IDObjectManage rm_material_instance; ///<材质实例合集 + IDObjectManage rm_desc_sets; ///<描述符合集 + IDObjectManage rm_primitives; ///<图元合集 + IDObjectManage rm_buffers; ///<顶点缓冲区合集 + IDObjectManage rm_samplers; ///<采样器合集 + IDObjectManage rm_textures; ///<纹理合集 + IDObjectManage rm_renderables; ///<渲染实例集合集 public: diff --git a/src/SceneGraph/MaterialRenderList.cpp b/src/SceneGraph/MaterialRenderList.cpp index e4808338..0e6dca9b 100644 --- a/src/SceneGraph/MaterialRenderList.cpp +++ b/src/SceneGraph/MaterialRenderList.cpp @@ -133,7 +133,7 @@ void MaterialRenderList::Stat() RenderNode *rn=rn_list.GetData(); ri_list.ClearData(); - ri_list.PreMalloc(count); + ri_list.PreAlloc(count); mi_set.ClearData();