Skip to content

Commit 7a41125

Browse files
Run format_all.sh.
1 parent af787a8 commit 7a41125

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,9 +1151,8 @@ static int main_inner(int argc, char *argv[])
11511151
args.msl_dynamic_buffers.push_back(make_pair(desc_set, binding));
11521152
});
11531153
cbs.add("--msl-decoration-binding", [&args](CLIParser &) { args.msl_decoration_binding = true; });
1154-
cbs.add("--msl-force-active-argument-buffer-resources", [&args](CLIParser &) {
1155-
args.msl_force_active_argument_buffer_resources = true;
1156-
});
1154+
cbs.add("--msl-force-active-argument-buffer-resources",
1155+
[&args](CLIParser &) { args.msl_force_active_argument_buffer_resources = true; });
11571156
cbs.add("--extension", [&args](CLIParser &parser) { args.extensions.push_back(parser.next_string()); });
11581157
cbs.add("--rename-entry-point", [&args](CLIParser &parser) {
11591158
auto old_name = parser.next_string();

spirv_msl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,8 @@ void CompilerMSL::add_composite_variable_to_interface_block(StorageClass storage
18231823
";");
18241824
}
18251825
else if (flatten_from_ib_var)
1826-
statement(ib_var_ref, ".", mbr_name, " = ", ib_var_ref, ".", flatten_from_ib_mbr_name, "[", i, "];");
1826+
statement(ib_var_ref, ".", mbr_name, " = ", ib_var_ref, ".", flatten_from_ib_mbr_name, "[", i,
1827+
"];");
18271828
else
18281829
statement(ib_var_ref, ".", mbr_name, " = ", to_name(var.self), "[", i, "];");
18291830
});
@@ -1992,8 +1993,8 @@ void CompilerMSL::add_composite_member_variable_to_interface_block(StorageClass
19921993
entry_func.fixup_hooks_out.push_back([=, &var, &var_type]() {
19931994
if (flatten_from_ib_var)
19941995
{
1995-
statement(ib_var_ref, ".", mbr_name, " = ", ib_var_ref, ".", flatten_from_ib_mbr_name,
1996-
"[", i, "];");
1996+
statement(ib_var_ref, ".", mbr_name, " = ", ib_var_ref, ".", flatten_from_ib_mbr_name, "[", i,
1997+
"];");
19971998
}
19981999
else
19992000
{
@@ -12707,4 +12708,3 @@ void CompilerMSL::activate_argument_buffer_resources()
1270712708
active_interface_variables.insert(self);
1270812709
});
1270912710
}
12710-

spirv_reflect.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ void CompilerReflection::emit_type_member_qualifiers(const SPIRType &type, uint3
381381

382382
// Array stride is a property of the array type, not the struct.
383383
if (has_decoration(type.member_types[index], DecorationArrayStride))
384-
json_stream->emit_json_key_value("array_stride", get_decoration(type.member_types[index], DecorationArrayStride));
384+
json_stream->emit_json_key_value("array_stride",
385+
get_decoration(type.member_types[index], DecorationArrayStride));
385386

386387
if (dec.decoration_flags.get(DecorationMatrixStride))
387388
json_stream->emit_json_key_value("matrix_stride", dec.matrix_stride);

0 commit comments

Comments
 (0)