mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-15 16:30:08 +00:00
MSL don't emit memory_scope
after MSL 2.0.
This commit is contained in:
parent
52f26ee736
commit
ab329a7906
@ -2671,7 +2671,7 @@ void CompilerMSL::emit_barrier(uint32_t id_exe_scope, uint32_t id_mem_scope, uin
|
||||
else
|
||||
bar_stmt += "mem_none";
|
||||
|
||||
if (msl_options.is_ios() && msl_options.supports_msl_version(2))
|
||||
if (msl_options.is_ios() && (msl_options.supports_msl_version(2) && !msl_options.supports_msl_version(2, 1)))
|
||||
{
|
||||
bar_stmt += ", ";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user