From 76f5dcb8846cf5e8f389d0421e3884f319cfe723 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 22 Mar 2023 02:35:05 +0800 Subject: [PATCH] 1.added GetDescriptorCount at MaterialParameters 2.renamed to GetBoundCount from GetCount --- inc/hgl/graph/VKMaterialParameters.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/hgl/graph/VKMaterialParameters.h b/inc/hgl/graph/VKMaterialParameters.h index d1328e14..dd4db06d 100644 --- a/inc/hgl/graph/VKMaterialParameters.h +++ b/inc/hgl/graph/VKMaterialParameters.h @@ -5,6 +5,7 @@ #include #include #include +#include VK_NAMESPACE_BEGIN class MaterialParameters { @@ -26,8 +27,10 @@ public: DescriptorSet * GetDescriptorSet (){return descriptor_set;} const VkDescriptorSet GetVkDescriptorSet ()const{return descriptor_set->GetDescriptorSet();} - const uint32_t GetCount ()const{return descriptor_set->GetCount();} - const bool IsReady ()const{return descriptor_set->IsReady();} + const uint32_t GetDescriptorCount ()const{return desc_manager->GetBindCount(set_type);} ///<获取总共需要绑定的描述符数量 + + const uint32_t GetBoundCount ()const{return descriptor_set->GetCount();} ///<获取已经绑好的数量 + const bool IsReady ()const{return descriptor_set->IsReady();} ///<是否全部绑好了 public: