Use constant address space for SPIR-V parameters when generating tessellation control shader.

This commit is contained in:
Michael Barriault 2019-04-09 19:41:31 +01:00
parent b2c2f724f4
commit ca7df787b3

View File

@ -5613,7 +5613,7 @@ void CompilerMSL::entry_point_args_builtin(string &ep_args)
if (!ep_args.empty()) if (!ep_args.empty())
ep_args += ", "; ep_args += ", ";
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: // Tessellation control shaders get three additional parameters: