This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-03-22 21:40:49 +08:00
parent 160ba000d3
commit f555c77a83
2 changed files with 16 additions and 1 deletions

View File

@ -23,6 +23,11 @@ class DescriptorSet
bool is_dirty;
protected: //动态UBO/SSBO记录
private:
friend class GPUDevice;

View File

@ -5,10 +5,13 @@
#include<hgl/type/String.h>
#include<hgl/graph/VKDescriptorSet.h>
#include<hgl/graph/VKDescriptorSetType.h>
#include<hgl/graph/VKMaterialDescriptorManager.h>
#include<hgl/graph/VKMaterialDescriptorManager.h>
#include<hgl/graph/VKArrayBuffer.h>
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();} ///<是否全部绑好了