diff --git a/CMAssetsManage b/CMAssetsManage index 4b880eb5..85436b5a 160000 --- a/CMAssetsManage +++ b/CMAssetsManage @@ -1 +1 @@ -Subproject commit 4b880eb50f5ef7436e72b8a0a03d528da3fd76a3 +Subproject commit 85436b5a7b0bc9347fcd3321a6895464470f1353 diff --git a/CMCMakeModule b/CMCMakeModule index 17e263bf..737fe5c8 160000 --- a/CMCMakeModule +++ b/CMCMakeModule @@ -1 +1 @@ -Subproject commit 17e263bf440f0b8b6834b454a4952d2f2a38ce3c +Subproject commit 737fe5c80d013f807cbb8f4d333d5a59c82571bc diff --git a/CMCore b/CMCore index 0a0f885c..2ebd4b4a 160000 --- a/CMCore +++ b/CMCore @@ -1 +1 @@ -Subproject commit 0a0f885c75bc9342bb46d639a2174f8d8a44cf4c +Subproject commit 2ebd4b4ac93ad89cb5f74af0b01d06d30752b1aa diff --git a/CMSceneGraph b/CMSceneGraph index ae170b71..f9e23893 160000 --- a/CMSceneGraph +++ b/CMSceneGraph @@ -1 +1 @@ -Subproject commit ae170b717e5960034a2a0e83ba4c00a05023491d +Subproject commit f9e2389303d54229946e88cd514d1c38b07bb28b diff --git a/CMUtil b/CMUtil index 1e121c1b..f7dce030 160000 --- a/CMUtil +++ b/CMUtil @@ -1 +1 @@ -Subproject commit 1e121c1b3ebfbc46ce310335e2fb3b4c8ecdf8e0 +Subproject commit f7dce0304822280d0db23ae607783b7c3cd183fa diff --git a/inc/hgl/graph/mtl/ShaderVariableType.h b/inc/hgl/graph/mtl/ShaderVariableType.h index 99ae5805..d4a99b19 100644 --- a/inc/hgl/graph/mtl/ShaderVariableType.h +++ b/inc/hgl/graph/mtl/ShaderVariableType.h @@ -464,7 +464,7 @@ namespace hgl return(true); } - bool IsMember(const char *name)const + bool Contains(const char *name)const { if(count<=0) return(false); @@ -478,7 +478,7 @@ namespace hgl bool Add(ShaderVariable &sv) { - if(IsMember(sv.name)) + if(Contains(sv.name)) return(false); sv.location=count; diff --git a/inc/hgl/shadergen/MaterialDescriptorInfo.h b/inc/hgl/shadergen/MaterialDescriptorInfo.h index 1a6cb56c..53a99a41 100644 --- a/inc/hgl/shadergen/MaterialDescriptorInfo.h +++ b/inc/hgl/shadergen/MaterialDescriptorInfo.h @@ -41,7 +41,7 @@ public: bool hasStruct(const AnsiString &name) const { - return(struct_map.KeyExist(name)); + return(struct_map.ContainsKey(name)); } const UBODescriptor *AddUBO(uint32_t shader_stage_flag_bits,DescriptorSetType set_type,UBODescriptor *sd); diff --git a/inc/hgl/shadergen/ShaderCreateInfoMap.h b/inc/hgl/shadergen/ShaderCreateInfoMap.h index b02f64bb..7f2862da 100644 --- a/inc/hgl/shadergen/ShaderCreateInfoMap.h +++ b/inc/hgl/shadergen/ShaderCreateInfoMap.h @@ -15,7 +15,7 @@ public: VkShaderStageFlagBits flag=sc->GetShaderStage(); - if(KeyExist(flag)) + if(ContainsKey(flag)) return(false); ObjectMap::Add(flag,sc); diff --git a/inc/hgl/shadergen/ShaderDescriptorInfo.h b/inc/hgl/shadergen/ShaderDescriptorInfo.h index c8acb5fa..5f62c6af 100644 --- a/inc/hgl/shadergen/ShaderDescriptorInfo.h +++ b/inc/hgl/shadergen/ShaderDescriptorInfo.h @@ -74,7 +74,7 @@ public: bool AddInput(I &item){return input.Add(item);} bool AddOutput(O &item){return output.Add(item);} - bool hasInput(const char *name)const{return input.IsMember(name);} ///<是否有指定输入 + bool hasInput(const char *name)const{return input.Contains(name);} ///<是否有指定输入 public: diff --git a/src/GUI/ThemeEngine.cpp b/src/GUI/ThemeEngine.cpp index 71bdec36..4a8918cd 100644 --- a/src/GUI/ThemeEngine.cpp +++ b/src/GUI/ThemeEngine.cpp @@ -41,7 +41,7 @@ namespace hgl { if(!f)return(false); - if(form_list.KeyExist(f)) + if(form_list.ContainsKey(f)) return(false); Vector2f size=f->GetSize(); diff --git a/src/SceneGraph/Vulkan/VKDescriptorSet.cpp b/src/SceneGraph/Vulkan/VKDescriptorSet.cpp index 0925a9d4..c85beed6 100644 --- a/src/SceneGraph/Vulkan/VKDescriptorSet.cpp +++ b/src/SceneGraph/Vulkan/VKDescriptorSet.cpp @@ -81,7 +81,7 @@ bool DescriptorSet::BindUBO(const int binding,const DeviceBuffer *buf,bool dynam if(binding<0||!buf) return(false); - if(binded_sets.IsMember(binding))return(false); + if(binded_sets.Contains(binding))return(false); const VkDescriptorType desc_type=dynamic?VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC:VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER; @@ -97,7 +97,7 @@ bool DescriptorSet::BindUBO(const int binding,const DeviceBuffer *buf,const VkDe if(binding<0||!buf) return(false); - if(binded_sets.IsMember(binding))return(false); + if(binded_sets.Contains(binding))return(false); DescriptorBufferInfo *buf_info=new DescriptorBufferInfo(buf,offset,range); @@ -117,7 +117,7 @@ bool DescriptorSet::BindSSBO(const int binding,const DeviceBuffer *buf,bool dyna if(binding<0||!buf) return(false); - if(binded_sets.IsMember(binding))return(false); + if(binded_sets.Contains(binding))return(false); const VkDescriptorType desc_type=dynamic?VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC:VK_DESCRIPTOR_TYPE_STORAGE_BUFFER; @@ -133,7 +133,7 @@ bool DescriptorSet::BindSSBO(const int binding,const DeviceBuffer *buf,const VkD if(binding<0||!buf) return(false); - if(binded_sets.IsMember(binding))return(false); + if(binded_sets.Contains(binding))return(false); DescriptorBufferInfo *buf_info=new DescriptorBufferInfo(buf,offset,range); @@ -153,7 +153,7 @@ bool DescriptorSet::BindImageSampler(const int binding,Texture *tex,Sampler *sam if(binding<0||!tex||!sampler) return(false); - if(binded_sets.IsMember(binding))return(false); + if(binded_sets.Contains(binding))return(false); DescriptorImageInfo *image_info=new DescriptorImageInfo(tex,sampler); @@ -171,7 +171,7 @@ bool DescriptorSet::BindInputAttachment(const int binding,ImageView *iv) if(binding<0||!iv) return(false); - if(binded_sets.IsMember(binding))return(false); + if(binded_sets.Contains(binding))return(false); DescriptorImageInfo *image_info=new DescriptorImageInfo(iv->GetImageView()); diff --git a/src/SceneGraph/Vulkan/VKShaderModuleMap.cpp b/src/SceneGraph/Vulkan/VKShaderModuleMap.cpp index 605eaa06..c8594974 100644 --- a/src/SceneGraph/Vulkan/VKShaderModuleMap.cpp +++ b/src/SceneGraph/Vulkan/VKShaderModuleMap.cpp @@ -8,7 +8,7 @@ bool ShaderModuleMap::Add(const ShaderModule *sm) const VkShaderStageFlagBits stage=sm->GetStage(); - if(this->KeyExist(stage))return(false); + if(this->ContainsKey(stage))return(false); return this->Map::Add(stage,sm); } diff --git a/src/ShaderGen/MaterialCreateInfo.cpp b/src/ShaderGen/MaterialCreateInfo.cpp index 79f511d8..4c090113 100644 --- a/src/ShaderGen/MaterialCreateInfo.cpp +++ b/src/ShaderGen/MaterialCreateInfo.cpp @@ -38,7 +38,7 @@ bool MaterialCreateInfo::AddStruct(const AnsiString &struct_name,const AnsiStrin bool MaterialCreateInfo::AddUBO(const VkShaderStageFlagBits flag_bit,const DescriptorSetType set_type,const AnsiString &struct_name,const AnsiString &name) { - if(!shader_map.KeyExist(flag_bit)) + if(!shader_map.ContainsKey(flag_bit)) return(false); if(!mdi.hasStruct(struct_name)) @@ -95,7 +95,7 @@ bool MaterialCreateInfo::AddUBO(const uint32_t flag_bits,const DescriptorSetType bool MaterialCreateInfo::AddSampler(const VkShaderStageFlagBits flag_bit,const DescriptorSetType set_type,const SamplerType &st,const AnsiString &name) { - if(!shader_map.KeyExist(flag_bit)) + if(!shader_map.ContainsKey(flag_bit)) return(false); RANGE_CHECK_RETURN_FALSE(st); diff --git a/src/ShaderGen/MaterialDescriptorInfo.cpp b/src/ShaderGen/MaterialDescriptorInfo.cpp index 7f9ad209..9eadc1f1 100644 --- a/src/ShaderGen/MaterialDescriptorInfo.cpp +++ b/src/ShaderGen/MaterialDescriptorInfo.cpp @@ -21,7 +21,7 @@ MaterialDescriptorInfo::MaterialDescriptorInfo() const DescriptorSetType MaterialDescriptorInfo::GetSetType(const AnsiString &name)const { for(auto &sds:desc_set_array) - if(sds.descriptor_map.KeyExist(name)) + if(sds.descriptor_map.ContainsKey(name)) return(sds.set_type); return DescriptorSetType::Global;