42 pixel_index *=
kernel_data.integrator.blue_noise_sequence_length;
52 return make_uint3(pixel_index, 0x0cd0519f, 0xffffffff);
55 pixel_index *=
kernel_data.integrator.blue_noise_sequence_length;
70#ifdef __DEBUG_CORRELATION__
71 return (
float)drand48();
87#ifdef __DEBUG_CORRELATION__
88 return make_float2((
float)drand48(), (
float)drand48());
104#ifdef __DEBUG_CORRELATION__
105 return make_float3((
float)drand48(), (
float)drand48(), (
float)drand48());
121#ifdef __DEBUG_CORRELATION__
122 return make_float4((
float)drand48(), (
float)drand48(), (
float)drand48(), (
float)drand48());
140#ifdef __DEBUG_CORRELATION__
141 return srand48(rng_pixel +
sample);
ccl_device_inline uint nested_uniform_scramble_base4(uint i, uint seed)
ccl_device_inline uint morton2d(uint x, uint y)
#define kernel_assert(cond)
const KernelGlobalsCPU *ccl_restrict KernelGlobals
#define ccl_device_forceinline
#define ccl_device_inline
#define CCL_NAMESPACE_END
ccl_device_inline uint hash_iqnt2d(const uint x, const uint y)
ccl_device_inline uint hash_hp_seeded_uint(uint i, uint seed)
ccl_device float3 tabulated_sobol_sample_3D(KernelGlobals kg, uint sample, const uint rng_hash, const uint dimension)
ccl_device float2 tabulated_sobol_sample_2D(KernelGlobals kg, uint sample, const uint rng_hash, const uint dimension)
ccl_device float4 tabulated_sobol_sample_4D(KernelGlobals kg, uint sample, const uint rng_hash, const uint dimension)
ccl_device float tabulated_sobol_sample_1D(KernelGlobals kg, uint sample, const uint rng_hash, const uint dimension)
@ SAMPLING_PATTERN_BLUE_NOISE_FIRST
@ SAMPLING_PATTERN_TABULATED_SOBOL
@ SAMPLING_PATTERN_BLUE_NOISE_PURE
@ SAMPLING_PATTERN_SOBOL_BURLEY
ccl_device_inline uint path_rng_pixel_init(KernelGlobals kg, const int sample, const int x, const int y)
ccl_device_forceinline float2 path_rng_2D(KernelGlobals kg, uint rng_pixel, int sample, int dimension)
ccl_device_forceinline float path_rng_1D(KernelGlobals kg, uint rng_pixel, uint sample, int dimension)
ccl_device_forceinline float3 path_rng_3D(KernelGlobals kg, uint rng_pixel, int sample, int dimension)
ccl_device_forceinline float4 path_rng_4D(KernelGlobals kg, uint rng_pixel, int sample, int dimension)
CCL_NAMESPACE_BEGIN ccl_device_forceinline uint3 blue_noise_indexing(KernelGlobals kg, uint pixel_index, uint sample)
ccl_device_inline bool sample_is_class_A(int pattern, int sample)
ccl_device float sobol_burley_sample_1D(uint index, uint const dimension, uint seed, uint shuffled_index_mask)
ccl_device float2 sobol_burley_sample_2D(uint index, const uint dimension_set, uint seed, uint shuffled_index_mask)
ccl_device float4 sobol_burley_sample_4D(uint index, const uint dimension_set, uint seed, uint shuffled_index_mask)
ccl_device float3 sobol_burley_sample_3D(uint index, const uint dimension_set, uint seed, uint shuffled_index_mask)
ccl_device_inline uint popcount(uint x)