diff --git a/spirv_msl.cpp b/spirv_msl.cpp index 63cf7827..72aa7b96 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -5613,7 +5613,7 @@ void CompilerMSL::entry_point_args_builtin(string &ep_args) if (!ep_args.empty()) ep_args += ", "; ep_args += - join("device uint* spvIndirectParams [[buffer(", msl_options.indirect_params_buffer_index, ")]]"); + join("constant uint* spvIndirectParams [[buffer(", msl_options.indirect_params_buffer_index, ")]]"); } // Tessellation control shaders get three additional parameters: