Blender V4.3
asset_library_reference.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
11#pragma once
12
13#include "BLI_hash.hh"
14
15#include "DNA_asset_types.h"
16
18{
19 return (a.type == b.type) &&
20 ((a.type == ASSET_LIBRARY_CUSTOM) ? (a.custom_library_index == b.custom_library_index) :
21 true);
22}
23
24namespace blender {
25
28 {
29 return get_default_hash(value.type, value.custom_library_index);
30 }
31};
32
33} // namespace blender
@ ASSET_LIBRARY_CUSTOM
bool operator==(const AssetLibraryReference &a, const AssetLibraryReference &b)
local_group_size(16, 16) .push_constant(Type b
uint64_t get_default_hash(const T &v)
Definition BLI_hash.hh:219
unsigned __int64 uint64_t
Definition stdint.h:90
uint64_t operator()(const AssetLibraryReference &value) const