|
Blender V4.3
|
#include <BLI_compute_context.hh>
Public Member Functions | |
| uint64_t | hash () const |
| void | mix_in (const void *data, int64_t len) |
Public Attributes | |
| uint64_t | v1 = 0 |
| uint64_t | v2 = 0 |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const ComputeContextHash &hash) |
A hash that uniquely identifies a specific (non-fixed-size) compute context. The hash has to have enough bits to make collisions practically impossible.
Definition at line 51 of file BLI_compute_context.hh.
|
inline |
Definition at line 55 of file BLI_compute_context.hh.
References v1.
Referenced by blender::nodes::NodeInContext::context_hash(), blender::nodes::SocketInContext::context_hash(), mix_in(), and blender::try_add_side_effect_node().
| void blender::ComputeContextHash::mix_in | ( | const void * | data, |
| int64_t | len ) |
Definition at line 12 of file compute_context.cc.
References blender::DynamicStackBuffer< ReservedSize, ReservedAlignment >::buffer(), hash(), and len.
Referenced by blender::bke::ForeachGeometryElementZoneComputeContext::ForeachGeometryElementZoneComputeContext(), blender::bke::GroupNodeComputeContext::GroupNodeComputeContext(), blender::bke::ModifierComputeContext::ModifierComputeContext(), blender::bke::OperatorComputeContext::OperatorComputeContext(), and blender::bke::RepeatZoneComputeContext::RepeatZoneComputeContext().
|
friend |
Definition at line 26 of file compute_context.cc.
| uint64_t blender::ComputeContextHash::v1 = 0 |
Definition at line 52 of file BLI_compute_context.hh.
Referenced by blender::ed::space_node::get_compute_context_hash_for_node_editor(), and hash().
| uint64_t blender::ComputeContextHash::v2 = 0 |
Definition at line 53 of file BLI_compute_context.hh.