Blender V4.3
blender::ComputeContextHash Struct Reference

#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)

Detailed Description

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.

Member Function Documentation

◆ hash()

uint64_t blender::ComputeContextHash::hash ( ) const
inline

Definition at line 55 of file BLI_compute_context.hh.

References v1.

Referenced by mix_in(), operator<<, and blender::try_add_side_effect_node().

◆ mix_in()

void blender::ComputeContextHash::mix_in ( const void * data,
int64_t len )

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
const ComputeContextHash & hash )
friend

Definition at line 26 of file compute_context.cc.

References hash().

Member Data Documentation

◆ v1

uint64_t blender::ComputeContextHash::v1 = 0

Definition at line 52 of file BLI_compute_context.hh.

Referenced by hash().

◆ v2

uint64_t blender::ComputeContextHash::v2 = 0

Definition at line 53 of file BLI_compute_context.hh.


The documentation for this struct was generated from the following files: