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();} ///<是否全部绑好了