mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Merge pull request #1631 from attilaz/spirv-cross-metal
spirv-cross: removed rename hack
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user