Blender V5.0
device/cpu/globals.cpp
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
7
8#include "util/guiding.h" // IWYU pragma: keep
9#include "util/profiling.h"
10
12
14 OSLGlobals *osl_globals,
15 Profiler &cpu_profiler,
16 const int thread_index)
17 : KernelGlobalsCPU(kernel_globals),
18#ifdef WITH_OSL
19 osl(osl_globals, thread_index),
20#endif
21 cpu_profiler_(cpu_profiler)
22{
23#ifndef WITH_OSL
24 (void)thread_index;
25 (void)osl_globals;
26#endif
27
28#if defined(WITH_PATH_GUIDING)
29 opgl_path_segment_storage = make_unique<openpgl::cpp::PathSegmentStorage>();
30#endif
31}
32
37
42
#define CCL_NAMESPACE_END
ProfilingState profiler
ThreadKernelGlobalsCPU(const KernelGlobalsCPU &kernel_globals, OSLGlobals *osl_globals_memory, Profiler &cpu_profiler, const int thread_index)