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 May 3, 2024
1 parent 3101a0d commit 9dee797
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 @@ -449,7 +449,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 @@ -655,7 +655,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 9dee797

Please sign in to comment.