Add code braces

This commit is contained in:
John Wells 2023-03-29 13:52:42 -04:00
parent e31deb8340
commit 42a89a5885

View File

@ -17281,6 +17281,7 @@ void CompilerMSL::analyze_argument_buffers()
if (msl_options.pad_argument_buffer_resources) if (msl_options.pad_argument_buffer_resources)
{ {
if (!resource.descriptor_alias) if (!resource.descriptor_alias)
{
while (resource.index > next_arg_buff_index) while (resource.index > next_arg_buff_index)
{ {
auto &rez_bind = get_argument_buffer_resource(desc_set, next_arg_buff_index); auto &rez_bind = get_argument_buffer_resource(desc_set, next_arg_buff_index);
@ -17318,6 +17319,7 @@ void CompilerMSL::analyze_argument_buffers()
break; break;
} }
} }
}
// Adjust the number of slots consumed by current member itself. // Adjust the number of slots consumed by current member itself.
// If actual member is an array, allow runtime array resolution as well. // If actual member is an array, allow runtime array resolution as well.