Blender V5.0
util/guiding.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#if defined(WITH_PATH_GUIDING)
8# include <openpgl/cpp/OpenPGL.h> // IWYU pragma: export
9# include <openpgl/version.h> // IWYU pragma: export
10#endif
11
12#include "util/system.h" // IWYU pragma: keep
13
15
17{
18#if defined(WITH_PATH_GUIDING)
19# if defined(__ARM_NEON)
20 return 8;
21# else
23 return 8;
24 }
26 return 4;
27 }
28 return 0;
29# endif
30#else
31 return 0;
32#endif
33}
34
35static inline bool guiding_supported()
36{
37 return guiding_device_type() != 0;
38}
39
#define CCL_NAMESPACE_END
bool system_cpu_support_avx2()
Definition system.cpp:220
bool system_cpu_support_sse42()
Definition system.cpp:215
static bool guiding_supported()
static CCL_NAMESPACE_BEGIN int guiding_device_type()