9#include "util/profiling.h"
14 void *osl_globals_memory,
16 const int thread_index)
22 OSLGlobals::thread_init(
this,
static_cast<OSLGlobals *
>(osl_globals_memory), thread_index);
25 (void)osl_globals_memory;
28#ifdef WITH_PATH_GUIDING
29 opgl_path_segment_storage =
new openpgl::cpp::PathSegmentStorage();
36 other.clear_runtime_pointers();
42 OSLGlobals::thread_free(
this);
45#ifdef WITH_PATH_GUIDING
46 delete opgl_path_segment_storage;
47 delete opgl_surface_sampling_distribution;
48 delete opgl_volume_sampling_distribution;
60 other.clear_runtime_pointers();
71#ifdef WITH_PATH_GUIDING
72 opgl_sample_data_storage =
nullptr;
73 opgl_guiding_field =
nullptr;
75 opgl_path_segment_storage =
nullptr;
76 opgl_surface_sampling_distribution =
nullptr;
77 opgl_volume_sampling_distribution =
nullptr;
CPUKernelThreadGlobals & operator=(const CPUKernelThreadGlobals &other)=delete
~CPUKernelThreadGlobals()
CPUKernelThreadGlobals(const KernelGlobalsCPU &kernel_globals, void *osl_globals_memory, Profiler &cpu_profiler, const int thread_index)
void clear_runtime_pointers()
void add_state(ProfilingState *state)
void remove_state(ProfilingState *state)
struct KernelGlobalsCPU KernelGlobalsCPU
#define CCL_NAMESPACE_END