Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/embree/include/embree4/rtcore_config.h
9905 views
1
// Copyright 2009-2021 Intel Corporation
2
// SPDX-License-Identifier: Apache-2.0
3
4
#pragma once
5
6
#if !defined(EMBREE_SYCL_SUPPORT)
7
// #cmakedefine EMBREE_SYCL_SUPPORT
8
#endif
9
10
#define RTC_VERSION_MAJOR 4
11
#define RTC_VERSION_MINOR 4
12
#define RTC_VERSION_PATCH 0
13
#define RTC_VERSION 40400
14
#define RTC_VERSION_STRING "4.4.0"
15
16
#define RTC_MAX_INSTANCE_LEVEL_COUNT 1
17
18
// #cmakedefine EMBREE_GEOMETRY_INSTANCE_ARRAY
19
#if defined(EMBREE_GEOMETRY_INSTANCE_ARRAY)
20
#define RTC_GEOMETRY_INSTANCE_ARRAY
21
#endif
22
23
// #cmakedefine01 EMBREE_SYCL_GEOMETRY_CALLBACK
24
25
#define EMBREE_MIN_WIDTH 0
26
#define RTC_MIN_WIDTH EMBREE_MIN_WIDTH
27
28
#if !defined(EMBREE_STATIC_LIB)
29
#define EMBREE_STATIC_LIB
30
#endif
31
// #cmakedefine EMBREE_API_NAMESPACE
32
33
#if defined(EMBREE_API_NAMESPACE)
34
# define RTC_NAMESPACE
35
# define RTC_NAMESPACE_BEGIN namespace {
36
# define RTC_NAMESPACE_END }
37
# define RTC_NAMESPACE_USE using namespace;
38
# define RTC_API_EXTERN_C
39
# define RTC_API_EXTERN_CPP
40
# undef EMBREE_API_NAMESPACE
41
#else
42
# define RTC_NAMESPACE_BEGIN
43
# define RTC_NAMESPACE_END
44
# define RTC_NAMESPACE_USE
45
# if defined(__cplusplus)
46
# define RTC_API_EXTERN_C extern "C"
47
# define RTC_API_EXTERN_CPP extern "C++"
48
# else
49
# define RTC_API_EXTERN_C
50
# endif
51
#endif
52
53
#if defined(ISPC)
54
# define RTC_API_IMPORT extern "C" unmasked
55
# define RTC_API_EXPORT extern "C" unmasked
56
#elif defined(EMBREE_STATIC_LIB)
57
# define RTC_API_IMPORT RTC_API_EXTERN_C
58
# define RTC_API_EXPORT RTC_API_EXTERN_C
59
#elif defined(_WIN32)
60
# define RTC_API_IMPORT RTC_API_EXTERN_C __declspec(dllimport)
61
# define RTC_API_EXPORT RTC_API_EXTERN_C __declspec(dllexport)
62
#else
63
# define RTC_API_IMPORT RTC_API_EXTERN_C
64
# define RTC_API_EXPORT RTC_API_EXTERN_C __attribute__ ((visibility ("default")))
65
#endif
66
67
#if defined(ISPC)
68
# define RTC_API_IMPORT_CPP extern "C++" unmasked
69
# define RTC_API_EXPORT_CPP extern "C++" unmasked
70
#elif defined(EMBREE_STATIC_LIB)
71
# define RTC_API_IMPORT_CPP RTC_API_EXTERN_CPP
72
# define RTC_API_EXPORT_CPP RTC_API_EXTERN_CPP
73
#elif defined(_WIN32)
74
# define RTC_API_IMPORT_CPP RTC_API_EXTERN_CPP __declspec(dllimport)
75
# define RTC_API_EXPORT_CPP RTC_API_EXTERN_CPP __declspec(dllexport)
76
#else
77
# define RTC_API_IMPORT_CPP RTC_API_EXTERN_CPP
78
# define RTC_API_EXPORT_CPP RTC_API_EXTERN_CPP __attribute__ ((visibility ("default")))
79
#endif
80
81
#if defined(RTC_EXPORT_API)
82
# define RTC_API RTC_API_EXPORT
83
#else
84
# define RTC_API RTC_API_IMPORT
85
#endif
86
87
#if defined(RTC_EXPORT_API)
88
# define RTC_API_CPP RTC_API_EXPORT_CPP
89
#else
90
# define RTC_API_CPP RTC_API_IMPORT_CPP
91
#endif
92
93
#if defined(ISPC)
94
# define RTC_SYCL_INDIRECTLY_CALLABLE
95
#elif defined(__SYCL_DEVICE_ONLY__)
96
# define RTC_SYCL_INDIRECTLY_CALLABLE [[intel::device_indirectly_callable]] SYCL_EXTERNAL
97
# define RTC_SYCL_API SYCL_EXTERNAL
98
#else
99
# define RTC_SYCL_INDIRECTLY_CALLABLE
100
# define RTC_SYCL_API RTC_API
101
#endif
102
103
104