Blender V5.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
10
11#include <optional>
12#include <string>
13
14#include "BLI_vector.hh"
15
16#include "DNA_ID_enums.h"
17
18namespace blender {
19
20struct ID;
22
23namespace bke::bake {
24
35 std::string id_name;
41 std::string lib_name;
42
43 BakeDataBlockID(ID_Type type, std::string id_name, std::string lib_name);
44 BakeDataBlockID(const ID &id);
45 BakeDataBlockID(const NodesModifierDataBlock &data_block);
46
47 uint64_t hash() const;
48
49 friend std::ostream &operator<<(std::ostream &stream, const BakeDataBlockID &id);
50
51 friend bool operator==(const BakeDataBlockID &a, const BakeDataBlockID &b) = default;
52};
53
57struct BakeMaterialsList : public Vector<std::optional<BakeDataBlockID>> {};
58
59} // namespace bke::bake
60} // namespace blender
Enumerations for DNA_ID.h.
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
friend std::ostream & operator<<(std::ostream &stream, const BakeDataBlockID &id)
BakeDataBlockID(ID_Type type, std::string id_name, std::string lib_name)
friend bool operator==(const BakeDataBlockID &a, const BakeDataBlockID &b)=default