|
Blender
V2.93
|
#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) |
| #define final | ( | a, | |
| b, | |||
| c | |||
| ) |
Jenkins Lookup3 Hash Functions. Source: http://burtleburtle.net/bob/c/lookup3.c
Definition at line 34 of file BLI_hash.h.
| BLI_INLINE unsigned int BLI_hash_int | ( | unsigned int | k | ) |
Definition at line 103 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(), make_dupli(), mesh_init_data(), and blender::nodes::sample_mesh_surface().
| BLI_INLINE float BLI_hash_int_01 | ( | unsigned int | k | ) |
Definition at line 108 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(), RandomFloatFunction::call(), do_paint_brush_task_cb_ex(), ED_gpencil_init_random_settings(), gpencil_apply_randomness(), gpencil_layer_random_color_get(), gpencil_sbuffer_vertex_color_random(), mask_init_task_cb(), noise_table(), SCULPT_do_paint_brush(), sculpt_face_sets_randomize_colors_exec(), blender::nodes::update_elimination_mask_based_on_density_factors(), and workbench_material_ubo_data().
| BLI_INLINE unsigned int BLI_hash_int_2d | ( | unsigned int | kx, |
| unsigned int | ky | ||
| ) |
Definition at line 67 of file BLI_hash.h.
References Freestyle::a, and Freestyle::c.
Referenced by BKE_gpencil_stroke_set_random_color(), BLI_hash_int(), BLI_hash_int_2d_to_float(), drw_call_obinfos_init(), ED_gpencil_init_random_settings(), blender::nodes::get_instanced_data__collection(), gpencil_apply_randomness(), gpencil_sbuffer_vertex_color_random(), make_dupli(), mesh_filter_task_cb(), noise_table(), and overlap_hash().
| BLI_INLINE float BLI_hash_int_2d_to_float | ( | uint32_t | kx, |
| uint32_t | ky | ||
| ) |
Definition at line 93 of file BLI_hash.h.
References BLI_hash_int_2d(), and float().
Referenced by blender::nodes::random_value_in_range(), and blender::nodes::randomize_attribute_bool().
| BLI_INLINE unsigned int BLI_hash_int_3d | ( | unsigned int | kx, |
| unsigned int | ky, | ||
| unsigned int | kz | ||
| ) |
Definition at line 54 of file BLI_hash.h.
References Freestyle::a, and Freestyle::c.
Referenced by BLI_hash_int_3d_to_float().
| BLI_INLINE float BLI_hash_int_3d_to_float | ( | uint32_t | kx, |
| uint32_t | ky, | ||
| uint32_t | kz | ||
| ) |
Definition at line 98 of file BLI_hash.h.
References BLI_hash_int_3d(), and float().
Referenced by blender::nodes::random_value_in_range().
| BLI_INLINE void BLI_hash_pointer_to_color | ( | const void * | ptr, |
| int * | r, | ||
| int * | g, | ||
| int * | b | ||
| ) |
Definition at line 113 of file BLI_hash.h.
References BLI_hash_int(), hash, ptr, and r.
Referenced by blender::deg::color_for_pointer().
| BLI_INLINE unsigned int BLI_hash_string | ( | const char * | str | ) |
Definition at line 83 of file BLI_hash.h.
References Freestyle::c, and str.
Referenced by deformStroke(), drw_call_obinfos_init(), EEVEE_renderpasses_aov_hash(), make_dupli(), node_shader_gpu_output_aov(), and blender::gpu::ShaderInterface::set_input_name().