From f555c77a834ebf674726fd5114d9a203cd2caeb6 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 22 Mar 2023 21:40:49 +0800 Subject: [PATCH] not run. --- inc/hgl/graph/VKDescriptorSet.h | 5 +++++ inc/hgl/graph/VKMaterialParameters.h | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/inc/hgl/graph/VKDescriptorSet.h b/inc/hgl/graph/VKDescriptorSet.h index 2bf019a3..55d43f64 100644 --- a/inc/hgl/graph/VKDescriptorSet.h +++ b/inc/hgl/graph/VKDescriptorSet.h @@ -23,6 +23,11 @@ class DescriptorSet bool is_dirty; +protected: //动态UBO/SSBO记录 + + + + private: friend class GPUDevice; diff --git a/inc/hgl/graph/VKMaterialParameters.h b/inc/hgl/graph/VKMaterialParameters.h index 5d66529b..c3e754f9 100644 --- a/inc/hgl/graph/VKMaterialParameters.h +++ b/inc/hgl/graph/VKMaterialParameters.h @@ -5,10 +5,13 @@ #include #include #include -#include +#include +#include VK_NAMESPACE_BEGIN class MaterialParameters { +protected: + const MaterialDescriptorManager *desc_manager; DescriptorSetType set_type; @@ -29,6 +32,13 @@ public: const uint32_t GetDescriptorCount ()const{return desc_manager->GetBindCount(set_type);} ///<获取总共需要绑定的描述符数量 + const uint32_t GetDynamicCount ()const + { + //返回动态ubo/ssbo总量 + + //考虑将 + } + const uint32_t GetBoundCount ()const{return descriptor_set->GetCount();} ///<获取已经绑好的数量 const bool IsReady ()const{return descriptor_set->IsReady();} ///<是否全部绑好了