|
Blender V5.0
|
Go to the source code of this file.
Macros | |
| #define | rot(x, k) |
| #define | mix(a, b, c) |
| #define | final(a, b, c) |
| #define final | ( | a, | |
| b, | |||
| c ) |
| #define mix | ( | a, | |
| b, | |||
| c ) |
| #define rot | ( | x, | |
| k ) |
| ccl_device_inline float hash_float2_to_float | ( | const float2 | k | ) |
Definition at line 222 of file hash.h.
References __float_as_uint, ccl_device_inline, hash_uint2_to_float(), float2::x, and float2::y.
Referenced by hash_float2_to_float2(), hash_float2_to_float3(), hash_float_to_float2(), hash_float_to_float3(), random_float2_offset(), random_float3_offset(), random_float4_offset(), and svm_node_tex_white_noise().
| ccl_device_inline float2 hash_float2_to_float2 | ( | const float2 | k | ) |
Definition at line 278 of file hash.h.
References ccl_device_inline, hash_float2_to_float(), hash_float3_to_float(), make_float2, make_float3(), float2::x, and float2::y.
Referenced by bake_jitter_barycentric().
| ccl_device_inline float3 hash_float2_to_float3 | ( | const float2 | k | ) |
Definition at line 307 of file hash.h.
References ccl_device_inline, hash_float2_to_float(), hash_float3_to_float(), make_float3(), float2::x, and float2::y.
Referenced by svm_node_tex_white_noise().
| ccl_device_inline float hash_float3_to_float | ( | const float3 | k | ) |
Definition at line 227 of file hash.h.
References __float_as_uint, ccl_device_inline, hash_uint3_to_float(), float3::x, float3::y, and float3::z.
Referenced by compute_2d_gabor_noise_cell(), hash_float2_to_float2(), hash_float2_to_float3(), hash_float3_to_float2(), hash_float3_to_float3(), and svm_node_tex_white_noise().
| ccl_device_inline float2 hash_float3_to_float2 | ( | const float3 | k | ) |
Definition at line 328 of file hash.h.
References ccl_device_inline, hash_float3_to_float(), make_float2, make_float3(), float3::x, float3::y, and float3::z.
Referenced by compute_2d_gabor_noise_cell().
| ccl_device_inline float3 hash_float3_to_float3 | ( | const float3 | k | ) |
Definition at line 283 of file hash.h.
References ccl_device_inline, hash_float3_to_float(), hash_float4_to_float(), make_float3(), make_float4, float3::x, float3::y, and float3::z.
Referenced by svm_node_tex_white_noise().
| ccl_device_inline float hash_float4_to_float | ( | const float4 | k | ) |
Definition at line 232 of file hash.h.
References __float_as_uint, ccl_device_inline, hash_uint4_to_float(), float4::w, float4::x, float4::y, and float4::z.
Referenced by compute_3d_gabor_noise_cell(), hash_float3_to_float3(), hash_float4_to_float2(), hash_float4_to_float3(), hash_float4_to_float4(), and svm_node_tex_white_noise().
| ccl_device_inline float2 hash_float4_to_float2 | ( | const float4 | k | ) |
Definition at line 334 of file hash.h.
References ccl_device_inline, hash_float4_to_float(), make_float2, make_float4, float4::w, float4::x, float4::y, and float4::z.
Referenced by compute_3d_orientation().
| ccl_device_inline float3 hash_float4_to_float3 | ( | const float4 | k | ) |
Definition at line 314 of file hash.h.
References ccl_device_inline, hash_float4_to_float(), make_float3(), make_float4, float4::w, float4::x, float4::y, and float4::z.
Referenced by compute_3d_gabor_noise_cell(), and svm_node_tex_white_noise().
| ccl_device_inline float4 hash_float4_to_float4 | ( | const float4 | k | ) |
Definition at line 290 of file hash.h.
References ccl_device_inline, hash_float4_to_float(), make_float4, float4::w, float4::x, float4::y, and float4::z.
| ccl_device_inline float hash_float_to_float | ( | const float | k | ) |
Definition at line 217 of file hash.h.
References __float_as_uint, ccl_device_inline, and hash_uint_to_float().
Referenced by hash_float_to_float2(), and hash_float_to_float3().
| ccl_device_inline float2 hash_float_to_float2 | ( | const float | k | ) |
Definition at line 323 of file hash.h.
References ccl_device_inline, hash_float2_to_float(), hash_float_to_float(), and make_float2.
| ccl_device_inline float3 hash_float_to_float3 | ( | const float | k | ) |
Definition at line 300 of file hash.h.
References ccl_device_inline, hash_float2_to_float(), hash_float_to_float(), make_float2, and make_float3().
Referenced by svm_node_tex_white_noise(), voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
| ccl_device_inline float hash_hp_float | ( | const uint | i | ) |
Definition at line 537 of file hash.h.
References ccl_device_inline, hash_hp_uint(), i, and uint_to_float_excl().
Referenced by tabulated_sobol_generate_4D().
| ccl_device_inline float hash_hp_seeded_float | ( | const uint | i, |
| const uint | seed ) |
Definition at line 543 of file hash.h.
References ccl_device_inline, hash_hp_seeded_uint(), i, seed, and uint_to_float_excl().
| ccl_device_inline uint hash_hp_seeded_uint | ( | const uint | i, |
| uint | seed ) |
Definition at line 526 of file hash.h.
References ccl_device_inline, hash_hp_uint(), i, and seed.
Referenced by hash_hp_seeded_float(), path_state_rng_scramble(), sample_is_class_A(), and tabulated_sobol_generate_4D().
| ccl_device_inline uint hash_hp_uint | ( | uint | i | ) |
Definition at line 511 of file hash.h.
References ccl_device_inline, and i.
Referenced by hash_hp_float(), hash_hp_seeded_uint(), sobol_burley_sample_1D(), sobol_burley_sample_2D(), sobol_burley_sample_3D(), and sobol_burley_sample_4D().
| ccl_device_inline float2 hash_int2_to_float2 | ( | const int2 | k | ) |
Definition at line 241 of file hash.h.
References ccl_device_inline, float, hash_pcg2d_i(), make_float2, int2::x, and int2::y.
Referenced by voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
| ccl_device_inline float3 hash_int2_to_float3 | ( | const int2 | k | ) |
Definition at line 262 of file hash.h.
References ccl_device_inline, hash_int3_to_float3(), make_int3(), int2::x, and int2::y.
Referenced by voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
| ccl_device_inline float3 hash_int3_to_float3 | ( | const int3 | k | ) |
Definition at line 248 of file hash.h.
References ccl_device_inline, float, hash_pcg3d_i(), make_float3(), int3::x, int3::y, and int3::z.
Referenced by hash_int2_to_float3(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
| ccl_device_inline float3 hash_int4_to_float3 | ( | const int4 | k | ) |
Definition at line 267 of file hash.h.
References ccl_device_inline, hash_int4_to_float4(), and make_float3().
Referenced by voronoi_f1(), voronoi_f2(), and voronoi_smooth_f1().
| ccl_device_inline float4 hash_int4_to_float4 | ( | const int4 | k | ) |
Definition at line 255 of file hash.h.
References ccl_device_inline, float, hash_pcg4d_i(), and make_float4.
Referenced by hash_int4_to_float3(), voronoi_distance_to_edge(), voronoi_f1(), voronoi_f2(), voronoi_n_sphere_radius(), and voronoi_smooth_f1().
| ccl_device_inline uint hash_iqnt2d | ( | const uint | x, |
| const uint | y ) |
2D hash recommended from "Hash Functions for GPU Rendering" JCGT Vol. 9, No. 3, 2020 See https://www.shadertoy.com/view/4tXyWN and https://www.shadertoy.com/view/XlGcRh http://www.jcgt.org/published/0009/03/02/paper.pdf
Definition at line 625 of file hash.h.
References ccl_device_inline, x, and y.
Referenced by path_rng_pixel_init().
| ccl_ignore_integer_overflow ccl_device_inline int2 hash_pcg2d_i | ( | int2 | v | ) |
Definition at line 39 of file hash.h.
References ccl_device_inline, ccl_ignore_integer_overflow, make_int2(), and v.
Referenced by hash_int2_to_float2().
| ccl_ignore_integer_overflow ccl_device_inline int3 hash_pcg3d_i | ( | int3 | v | ) |
Definition at line 50 of file hash.h.
References ccl_device_inline, ccl_ignore_integer_overflow, make_int3(), and v.
Referenced by hash_int3_to_float3().
| ccl_ignore_integer_overflow ccl_device_inline int4 hash_pcg4d_i | ( | int4 | v | ) |
Definition at line 63 of file hash.h.
References ccl_device_inline, ccl_ignore_integer_overflow, make_int4(), and v.
Referenced by hash_int4_to_float4().
| ccl_device_inline uint hash_shuffle_uint | ( | uint | i, |
| const uint | length, | ||
| const uint | seed ) |
Definition at line 591 of file hash.h.
References ccl_device_inline, count_leading_zeros(), i, length(), mask(), and seed.
Referenced by tabulated_sobol_shuffled_sample_index().
|
inlinestatic |
Definition at line 637 of file hash.h.
Referenced by LightManager::add_ies(), and GeometryManager::create_volume_mesh().
| ccl_device_inline uint hash_uint | ( | const uint | kx | ) |
Definition at line 126 of file hash.h.
References b, and ccl_device_inline.
Referenced by Integrator::device_update(), hash_uint_to_float(), integrator_init_from_bake(), and perlin_1d().
| ccl_device_inline uint hash_uint2 | ( | const uint | kx, |
| const uint | ky ) |
Definition at line 139 of file hash.h.
References b, and ccl_device_inline.
Referenced by cycles_precompute(), hash_uint2_to_float(), SubEdge::Hash::operator()(), perlin_2d(), BlenderSession::render(), and BlenderSync::sync_integrator().
| ccl_device_inline float hash_uint2_to_float | ( | const uint | kx, |
| const uint | ky ) |
Definition at line 197 of file hash.h.
References ccl_device_inline, hash_uint2(), and uint_to_float_incl().
Referenced by export_hair_curves(), export_pointcloud(), ExportCurveSegments(), get_object_standard_attribute(), OSLRenderServices::get_object_standard_attribute(), hash_float2_to_float(), and svm_node_particle_info().
| ccl_device_inline uint hash_uint3 | ( | const uint | kx, |
| const uint | ky, | ||
| const uint | kz ) |
Definition at line 153 of file hash.h.
References b, and ccl_device_inline.
Referenced by hash_uint3_to_float(), lcg_state_init(), and perlin_3d().
| ccl_device_inline float hash_uint3_to_float | ( | const uint | kx, |
| const uint | ky, | ||
| const uint | kz ) |
Definition at line 202 of file hash.h.
References ccl_device_inline, hash_uint3(), and uint_to_float_incl().
Referenced by hash_float3_to_float().
Definition at line 168 of file hash.h.
References b, ccl_device_inline, and mix.
Referenced by hash_uint4_to_float(), and perlin_4d().
| ccl_device_inline float hash_uint4_to_float | ( | const uint | kx, |
| const uint | ky, | ||
| const uint | kz, | ||
| const uint | kw ) |
Definition at line 207 of file hash.h.
References ccl_device_inline, hash_uint4(), and uint_to_float_incl().
Referenced by hash_float4_to_float().
| ccl_device_inline float hash_uint_to_float | ( | const uint | kx | ) |
Definition at line 192 of file hash.h.
References ccl_device_inline, hash_uint(), and uint_to_float_incl().
Referenced by attr_create_random_per_island(), GeometryManager::create_volume_mesh(), and hash_float_to_float().
| ccl_device_inline float hash_wang_seeded_float | ( | const uint | i, |
| const uint | seed ) |
Definition at line 567 of file hash.h.
References ccl_device_inline, hash_wang_seeded_uint(), i, seed, and uint_to_float_excl().
Referenced by tabulated_sobol_sample_1D(), tabulated_sobol_sample_2D(), tabulated_sobol_sample_3D(), and tabulated_sobol_sample_4D().
| ccl_device_inline uint hash_wang_seeded_uint | ( | uint | i, |
| const uint | seed ) |
Definition at line 557 of file hash.h.
References ccl_device_inline, i, and seed.
Referenced by hash_wang_seeded_float(), and tabulated_sobol_shuffled_sample_index().
| CCL_NAMESPACE_BEGIN ccl_device_forceinline float uint_to_float_excl | ( | const uint | n | ) |
Definition at line 14 of file hash.h.
References ccl_device_forceinline.
Referenced by hash_hp_float(), hash_hp_seeded_float(), hash_wang_seeded_float(), and sobol_burley().
| ccl_device_forceinline float uint_to_float_incl | ( | const uint | n | ) |
Definition at line 25 of file hash.h.
References ccl_device_forceinline, and float.
Referenced by hash_uint2_to_float(), hash_uint3_to_float(), hash_uint4_to_float(), and hash_uint_to_float().