mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-13 23:50:08 +00:00
Run format_all.sh.
This commit is contained in:
parent
2f65a1583e
commit
89e3b8ff0d
@ -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]);
|
||||
|
@ -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++)");
|
||||
|
Loading…
Reference in New Issue
Block a user