Skip to content

Commit

Permalink
Do not consider uniforms with names containing .@DaTa. as valid uni…
Browse files Browse the repository at this point in the history
…forms
  • Loading branch information
jay3d committed Jul 28, 2024
1 parent 0de1f03 commit 5df4dd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/shaderc/shaderc_metal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion tools/shaderc/shaderc_spirv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5df4dd1

Please sign in to comment.