Blender V4.3
BKE_bake_items_socket.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BLI_function_ref.hh"
8
9#include "DNA_node_types.h"
10
11#include "BKE_bake_items.hh"
13
14namespace blender::bke::bake {
15
35
41 Span<void *> socket_values, const BakeSocketConfig &config, BakeDataBlockMap *data_block_map);
42
55 Span<BakeItem *> bake_items,
56 const BakeSocketConfig &config,
57 BakeDataBlockMap *data_block_map,
58 FunctionRef<std::shared_ptr<AttributeFieldInput>(int socket_index, const CPPType &)>
59 make_attribute_field,
60 Span<void *> r_socket_values);
61
67 Span<const BakeItem *> bake_items,
68 const BakeSocketConfig &config,
69 BakeDataBlockMap *data_block_map,
70 FunctionRef<std::shared_ptr<AttributeFieldInput>(int, const CPPType &)> make_attribute_field,
71 Span<void *> r_socket_values);
72
73} // namespace blender::bke::bake
Array< std::unique_ptr< BakeItem > > move_socket_values_to_bake_items(Span< void * > socket_values, const BakeSocketConfig &config, BakeDataBlockMap *data_block_map)
void copy_bake_items_to_socket_values(Span< const BakeItem * > bake_items, const BakeSocketConfig &config, BakeDataBlockMap *data_block_map, FunctionRef< std::shared_ptr< AttributeFieldInput >(int, const CPPType &)> make_attribute_field, Span< void * > r_socket_values)
void move_bake_items_to_socket_values(Span< BakeItem * > bake_items, const BakeSocketConfig &config, BakeDataBlockMap *data_block_map, FunctionRef< std::shared_ptr< AttributeFieldInput >(int socket_index, const CPPType &)> make_attribute_field, Span< void * > r_socket_values)
Vector< Vector< int, 1 > > geometries_by_attribute