Run format_all.sh.

This commit is contained in:
Hans-Kristian Arntzen 2018-09-12 10:53:50 +02:00
parent 2f65a1583e
commit 89e3b8ff0d
2 changed files with 3 additions and 6 deletions

View File

@ -6521,8 +6521,7 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
// as value types. Need to declare the array-of-arrays, and copy in elements one by one.
forced_temporaries.insert(id);
auto flags = meta[id].decoration.decoration_flags;
statement(flags_to_precision_qualifiers_glsl(out_type, flags),
variable_decl(out_type, to_name(id)), ";");
statement(flags_to_precision_qualifiers_glsl(out_type, flags), variable_decl(out_type, to_name(id)), ";");
set<SPIRExpression>(id, to_name(id), result_type, true);
for (uint32_t i = 0; i < length; i++)
emit_array_copy(join(to_expression(id), "[", i, "]"), elems[i]);

View File

@ -1292,10 +1292,8 @@ void CompilerMSL::emit_custom_functions()
array_arg += "]";
}
statement("void spvArrayCopy", function_name_tags[variant], dimensions,
"(thread T (&dst)", array_arg,
", ", src_address_space[variant], " T (&src)", array_arg,
")");
statement("void spvArrayCopy", function_name_tags[variant], dimensions, "(thread T (&dst)", array_arg,
", ", src_address_space[variant], " T (&src)", array_arg, ")");
begin_scope();
statement("for (uint i = 0; i < A; i++)");