spirv-cross: removed rename hack

recompiled metal shaders
This commit is contained in:
attilaz
2019-01-19 09:13:46 +01:00
parent 9520802e72
commit b5ac92e5fa
24 changed files with 0 additions and 3 deletions

View File

@@ -844,9 +844,6 @@ namespace bgfx { namespace spirv
{
unsigned binding = msl.get_decoration(resource.id, spv::DecorationBinding);
msl.set_decoration(resource.id, spv::DecorationBinding, binding + 1);
// workaround spirv -> msl codegen problem: same name was used as struct type and function parameter name
msl.set_name(resource.id, "_" + msl.get_name(resource.id));
}
std::string source = msl.compile();