Blender V5.0
openimagedenoise.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#ifdef WITH_OPENIMAGEDENOISE
8# include <OpenImageDenoise/oidn.hpp> // IWYU pragma: export
9#endif
10
11#include "util/system.h" // IWYU pragma: keep
12
14
15static inline bool openimagedenoise_supported()
16{
17#ifdef WITH_OPENIMAGEDENOISE
18# if defined(__APPLE__)
19 /* Always supported through Accelerate framework BNNS. */
20 return true;
21# elif defined(__aarch64__) || defined(_M_ARM64)
22 /* OIDN 2.2 and up supports ARM64 on Windows and Linux. */
23 return true;
24# else
26# endif
27#else
28 return false;
29#endif
30}
31
#define CCL_NAMESPACE_END
static CCL_NAMESPACE_BEGIN bool openimagedenoise_supported()
bool system_cpu_support_sse42()
Definition system.cpp:215