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 authored and Jamil Halabi committed Oct 8, 2024
1 parent fdb09ca commit 897d714
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 897d714

Please sign in to comment.