Do not consider uniforms with names containing .@data. as valid uniforms

This commit is contained in:
Jamil Halabi 2024-05-03 13:46:43 +12:00 committed by Jamil Halabi
parent fdb09ca401
commit 897d714910
2 changed files with 4 additions and 2 deletions

View File

@ -539,7 +539,8 @@ namespace bgfx { namespace metal
Uniform un;
un.name = program->getUniformName(ii);
if (bx::hasSuffix(un.name.c_str(), ".@data") )
if (bx::hasSuffix(un.name.c_str(), ".@data")
|| !bx::strFind(un.name.c_str(), ".@data.").isEmpty() )
{
continue;
}

View File

@ -664,7 +664,8 @@ namespace bgfx { namespace spirv
Uniform un;
un.name = program->getUniformName(ii);
if (bx::hasSuffix(un.name.c_str(), ".@data") )
if (bx::hasSuffix(un.name.c_str(), ".@data")
|| !bx::strFind(un.name.c_str(), ".@data.").isEmpty() )
{
continue;
}