|
Blender V4.3
|
#include "BLI_utildefines.h"Go to the source code of this file.
Macros | |
| #define | rot(x, k) (((x) << (k)) | ((x) >> (32 - (k)))) |
| #define | final(a, b, c) |
Functions | |
| BLI_INLINE unsigned int | BLI_hash_int_3d (unsigned int kx, unsigned int ky, unsigned int kz) |
| BLI_INLINE unsigned int | BLI_hash_int_2d (unsigned int kx, unsigned int ky) |
| BLI_INLINE unsigned int | BLI_hash_string (const char *str) |
| BLI_INLINE float | BLI_hash_int_2d_to_float (uint32_t kx, uint32_t ky) |
| BLI_INLINE float | BLI_hash_int_3d_to_float (uint32_t kx, uint32_t ky, uint32_t kz) |
| BLI_INLINE unsigned int | BLI_hash_int (unsigned int k) |
| BLI_INLINE float | BLI_hash_int_01 (unsigned int k) |
| BLI_INLINE void | BLI_hash_pointer_to_color (const void *ptr, int *r, int *g, int *b) |
Definition at line 23 of file BLI_hash.h.
| #define rot | ( | x, | |
| k ) (((x) << (k)) | ((x) >> (32 - (k)))) |
Jenkins Lookup3 Hash Functions. Source: http://burtleburtle.net/bob/c/lookup3.c
Definition at line 22 of file BLI_hash.h.
| BLI_INLINE unsigned int BLI_hash_int | ( | unsigned int | k | ) |
Definition at line 91 of file BLI_hash.h.
References BLI_hash_int_2d().
Referenced by BKE_fluid_cache_new_name_for_current_session(), BLI_hash_int_01(), BLI_hash_pointer_to_color(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), make_dupli(), and mesh_init_data().
| BLI_INLINE float BLI_hash_int_01 | ( | unsigned int | k | ) |
Definition at line 96 of file BLI_hash.h.
References BLI_hash_int(), and float.
Referenced by BKE_gpencil_stroke_set_random_color(), BKE_paint_face_set_overlay_color_get(), blender::deform_drawing(), blender::ed::sculpt_paint::color::do_paint_brush(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::get_rand_matrix(), gpencil_layer_random_color_get(), grease_pencil_layer_random_color_get(), blender::ed::sculpt_paint::greasepencil::hash_rng(), blender::workbench::Material::Material(), blender::modify_stroke_random(), blender::noise_table(), blender::noise_table(), blender::ed::sculpt_paint::face_set::randomize_colors_exec(), and blender::ed::sculpt_paint::mask::sculpt_mask_init_exec().
| BLI_INLINE unsigned int BLI_hash_int_2d | ( | unsigned int | kx, |
| unsigned int | ky ) |
Definition at line 55 of file BLI_hash.h.
References b.
Referenced by BKE_gpencil_stroke_set_random_color(), BLI_hash_int(), BLI_hash_int_2d_to_float(), drw_call_obinfos_init(), make_dupli(), blender::noise_table(), blender::noise_table(), overlap_hash(), and blender::ed::sculpt_paint::filter::randomize_factors().
| BLI_INLINE float BLI_hash_int_2d_to_float | ( | uint32_t | kx, |
| uint32_t | ky ) |
Definition at line 81 of file BLI_hash.h.
References BLI_hash_int_2d(), and float.
| BLI_INLINE unsigned int BLI_hash_int_3d | ( | unsigned int | kx, |
| unsigned int | ky, | ||
| unsigned int | kz ) |
Definition at line 42 of file BLI_hash.h.
References b.
Referenced by BLI_hash_int_3d_to_float(), and blender::ed::sculpt_paint::greasepencil::hash_rng().
| BLI_INLINE float BLI_hash_int_3d_to_float | ( | uint32_t | kx, |
| uint32_t | ky, | ||
| uint32_t | kz ) |
Definition at line 86 of file BLI_hash.h.
References BLI_hash_int_3d(), and float.
| BLI_INLINE void BLI_hash_pointer_to_color | ( | const void * | ptr, |
| int * | r, | ||
| int * | g, | ||
| int * | b ) |
Definition at line 101 of file BLI_hash.h.
References b, BLI_hash_int(), hash, and ptr.
Referenced by blender::deg::color_for_pointer().
| BLI_INLINE unsigned int BLI_hash_string | ( | const char * | str | ) |
Definition at line 71 of file BLI_hash.h.
References str.
Referenced by blender::deform_drawing(), blender::deform_drawing(), drw_call_obinfos_init(), blender::eevee::Film::get_aov_texture(), blender::nodes::node_fn_hash_value_cc::get_multi_function(), blender::get_rand_matrix(), make_dupli(), blender::modify_stroke_random(), blender::nodes::node_shader_output_aov_cc::node_shader_gpu_output_aov(), blender::gpu::MTLShaderInterface::prepare_common_shader_inputs(), and blender::gpu::ShaderInterface::set_input_name().