Skip to content

Commit

Permalink
Merge pull request KhronosGroup#2193 from KhronosGroup/fix-2192
Browse files Browse the repository at this point in the history
MSL: Workaround bizarre crash on macOS.
  • Loading branch information
HansKristian-Work authored Aug 28, 2023
2 parents 7ba6f5c + b17dd58 commit 54997fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spirv_msl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12740,7 +12740,7 @@ void CompilerMSL::entry_point_args_builtin(string &ep_args)
else
ep_args += builtin_type_decl(bi_type, var_id) + " " + to_expression(var_id);

ep_args += " [[" + builtin_qualifier(bi_type);
ep_args += string(" [[") + builtin_qualifier(bi_type);
if (bi_type == BuiltInSampleMask && get_entry_point().flags.get(ExecutionModePostDepthCoverage))
{
if (!msl_options.supports_msl_version(2))
Expand Down Expand Up @@ -16222,8 +16222,8 @@ string CompilerMSL::built_in_func_arg(BuiltIn builtin, bool prefix_comma)
// Handle HLSL-style 0-based vertex/instance index.
builtin_declaration = true;
bi_arg += builtin_type_decl(builtin);
bi_arg += " " + builtin_to_glsl(builtin, StorageClassInput);
bi_arg += " [[" + builtin_qualifier(builtin) + "]]";
bi_arg += string(" ") + builtin_to_glsl(builtin, StorageClassInput);
bi_arg += string(" [[") + builtin_qualifier(builtin) + string("]]");
builtin_declaration = false;

return bi_arg;
Expand Down

0 comments on commit 54997fb

Please sign in to comment.