Skip to content

Commit 897d714

Browse files
jay3dJamil Halabi
authored andcommitted
Do not consider uniforms with names containing .@DaTa. as valid uniforms
1 parent fdb09ca commit 897d714

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/shaderc/shaderc_metal.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ namespace bgfx { namespace metal
539539
Uniform un;
540540
un.name = program->getUniformName(ii);
541541

542-
if (bx::hasSuffix(un.name.c_str(), ".@data") )
542+
if (bx::hasSuffix(un.name.c_str(), ".@data")
543+
|| !bx::strFind(un.name.c_str(), ".@data.").isEmpty() )
543544
{
544545
continue;
545546
}

tools/shaderc/shaderc_spirv.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ namespace bgfx { namespace spirv
664664
Uniform un;
665665
un.name = program->getUniformName(ii);
666666

667-
if (bx::hasSuffix(un.name.c_str(), ".@data") )
667+
if (bx::hasSuffix(un.name.c_str(), ".@data")
668+
|| !bx::strFind(un.name.c_str(), ".@data.").isEmpty() )
668669
{
669670
continue;
670671
}

0 commit comments

Comments
 (0)