Blender V5.0
BKE_bake_data_block_id.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include <optional>
12#include <string>
13
15#include "BLI_vector.hh"
16
17#include "DNA_ID_enums.h"
18
19struct ID;
21
23
34 std::string id_name;
40 std::string lib_name;
41
42 BakeDataBlockID(ID_Type type, std::string id_name, std::string lib_name);
43 BakeDataBlockID(const ID &id);
44 BakeDataBlockID(const NodesModifierDataBlock &data_block);
45
46 uint64_t hash() const;
47
48 friend std::ostream &operator<<(std::ostream &stream, const BakeDataBlockID &id);
49
51};
52
56struct BakeMaterialsList : public Vector<std::optional<BakeDataBlockID>> {};
57
58} // namespace blender::bke::bake
#define BLI_STRUCT_EQUALITY_OPERATORS_3(Type, m1, m2, m3)
Enumerations for DNA_ID.h.
ID_Type
unsigned long long int uint64_t
Definition DNA_ID.h:414
friend std::ostream & operator<<(std::ostream &stream, const BakeDataBlockID &id)
BakeDataBlockID(ID_Type type, std::string id_name, std::string lib_name)