Blender V4.3
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#ifndef __UTIL_OPENIMAGEDENOISE_H__
6#define __UTIL_OPENIMAGEDENOISE_H__
7
8#ifdef WITH_OPENIMAGEDENOISE
9# include <OpenImageDenoise/oidn.hpp>
10#endif
11
12#include "util/system.h"
13
15
16static inline bool openimagedenoise_supported()
17{
18#ifdef WITH_OPENIMAGEDENOISE
19# if defined(__APPLE__)
20 /* Always supported through Accelerate framework BNNS. */
21 return true;
22# elif defined(__aarch64__) || defined(_M_ARM64)
23 /* OIDN 2.2 and up supports ARM64 on Windows and Linux. */
24 return true;
25# else
27# endif
28#else
29 return false;
30#endif
31}
32
34
35#endif /* __UTIL_OPENIMAGEDENOISE_H__ */
#define CCL_NAMESPACE_END
static CCL_NAMESPACE_BEGIN bool openimagedenoise_supported()
bool system_cpu_support_sse42()
Definition system.cpp:222