Blender V5.3
blenlib/intern/cpp_types.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
9#include "BLI_color_types.hh"
10#include "BLI_cpp_type_make.hh"
14#include "BLI_unique_hash.hh"
15
16namespace blender {
17
18template<> void hash_unique_default(const std::string &value, UniqueHashBytes &hash)
19{
20 hash.data.extend(Span(value.data(), value.size()).cast<std::byte>());
21}
22
24{
25 static bool initialized = false;
26 if (initialized) {
27 return;
28 }
29 initialized = true;
30
32
37
39
48
52
54
57
60
62}
63
64} // namespace blender
#define BLI_CPP_TYPE_REGISTER(TYPE_NAME, FLAGS)
constexpr Span()=default
QuaternionBase< float > Quaternion
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
__int64 int64_t
Definition BKE_text.h:90
VecBase< int32_t, 4 > int4
MatBase< float, 4, 4 > float4x4
VecBase< float, 4 > float4
unsigned short uint16_t
Definition BKE_text.h:80
unsigned int uint32_t
Definition BKE_text.h:81
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
VecBase< int32_t, 3 > int3
unsigned char uint8_t
Definition BKE_text.h:79
VecBase< int16_t, 2 > short2
signed int int32_t
Definition BKE_text.h:78
ColorSceneLinear4f< eAlpha::Premultiplied > ColorGeometry4f
VecBase< float, 3 > float3
void hash_unique_default(const T &value, UniqueHashBytes &hash)
signed char int8_t
Definition BKE_text.h:76
ColorSceneLinearByteEncoded4b< eAlpha::Premultiplied > ColorGeometry4b
signed short int16_t
Definition BKE_text.h:77
#define hash
Definition noise_c.cc:156