use Contains instead of IsMember/IsExist

This commit is contained in:
2024-10-05 22:51:27 +08:00
parent d7f7a7d095
commit 9450d92784
14 changed files with 21 additions and 21 deletions

View File

@@ -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;