Blender V5.3
multi_function_params.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10
12
13void ParamsBuilder::add_unused_output_for_unsupporting_function(const CPPType &type)
14{
15 ResourceScope &scope = this->resource_scope();
16 void *buffer = scope.allocator().allocate_array(type, min_array_size_);
17 const GMutableSpan span{type, buffer, min_array_size_};
18 actual_params_.append_unchecked_as(std::in_place_type<GMutableSpan>, span);
19 if (!type.is_trivially_destructible) {
20 scope.add_destruct_call(
21 [&type, buffer, mask = mask_]() { type.destruct_indices(buffer, mask); });
22 }
23}
24
25} // namespace blender::fn::multi_function