Blender V4.3
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
11#include "BLI_string_ref.hh"
13#include "BLI_vector.hh"
14
15#include "DNA_ID_enums.h"
16
17struct ID;
19
21
32 std::string id_name;
38 std::string lib_name;
39
40 BakeDataBlockID(ID_Type type, std::string id_name, std::string lib_name);
41 BakeDataBlockID(const ID &id);
42 BakeDataBlockID(const NodesModifierDataBlock &data_block);
43
44 uint64_t hash() const;
45
46 friend std::ostream &operator<<(std::ostream &stream, const BakeDataBlockID &id);
47
49};
50
54struct BakeMaterialsList : public Vector<std::optional<BakeDataBlockID>> {};
55
56} // namespace blender::bke::bake
#define BLI_STRUCT_EQUALITY_OPERATORS_3(Type, m1, m2, m3)
Enumerations for DNA_ID.h.
ID_Type
unsigned __int64 uint64_t
Definition stdint.h:90
Definition DNA_ID.h:413
friend std::ostream & operator<<(std::ostream &stream, const BakeDataBlockID &id)
BakeDataBlockID(ID_Type type, std::string id_name, std::string lib_name)