Merge pull request #1631 from attilaz/spirv-cross-metal

spirv-cross: removed rename hack
This commit is contained in:
Бранимир Караџић
2019-01-19 00:19:30 -08:00
committed by GitHub
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();