DiCE API nvidia_logo_transpbg.gif Up
version.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
8
9#ifndef MI_NEURAYLIB_VERSION_H
10#define MI_NEURAYLIB_VERSION_H
11
12#include <mi/base/config.h>
13
32#define MI_NEURAYLIB_API_VERSION 51
33
34// The following three to four macros define the API version.
35// The macros thereafter are defined in terms of the first four.
36
40#define MI_NEURAYLIB_VERSION_MAJOR 4
41
45#define MI_NEURAYLIB_VERSION_MINOR 1
46
55#define MI_NEURAYLIB_VERSION_QUALIFIER ""
56
57// This macro is defined if #MI_NEURAYLIB_VERSION_QUALIFIER is the empty string \c "".
58#define MI_NEURAYLIB_VERSION_QUALIFIER_EMPTY
59
62#define MI_NEURAYLIB_VERSION_STRING MI_BASE_STRINGIZE(MI_NEURAYLIB_VERSION_MAJOR) "." \
63 MI_BASE_STRINGIZE(MI_NEURAYLIB_VERSION_MINOR)
64
68#ifdef MI_NEURAYLIB_VERSION_QUALIFIER_EMPTY
69#define MI_NEURAYLIB_VERSION_QUALIFIED_STRING MI_NEURAYLIB_VERSION_STRING
70#else
71#define MI_NEURAYLIB_VERSION_QUALIFIED_STRING MI_NEURAYLIB_VERSION_STRING "-" \
72 MI_NEURAYLIB_VERSION_QUALIFIER
73#endif // MI_NEURAYLIB_VERSION_QUALIFIER_EMPTY
74
76#define MI_NEURAYLIB_PRODUCT_VERSION_STRING "trunk"
77
80#define MI_NEURAYLIB_PLUGIN_TYPE "neuray API v43"
81
82// Enables features that were deprecated with version 12.1.
83// #define MI_NEURAYLIB_DEPRECATED_12_1
84
85// Prefixes names of deprecated methods unless deprecated features are enabled.
86#ifdef MI_NEURAYLIB_DEPRECATED_12_1
87#define MI_NEURAYLIB_DEPRECATED_METHOD_12_1(X) X
88#else
89#define MI_NEURAYLIB_DEPRECATED_METHOD_12_1(X) deprecated_##X
90#endif
91
92// Enables features that were deprecated with version 14.0.
93// #define MI_NEURAYLIB_DEPRECATED_14_0
94
95// Prefixes names of deprecated methods unless deprecated features are enabled.
96#ifdef MI_NEURAYLIB_DEPRECATED_14_0
97#define MI_NEURAYLIB_DEPRECATED_METHOD_14_0(X) X
98#else
99#define MI_NEURAYLIB_DEPRECATED_METHOD_14_0(X) deprecated_##X
100#endif
101
102// Enables the deprecated default privacy level of zero in
103// #mi::neuraylib::ITransaction::copy().
104// #define MI_NEURAYLIB_DEPRECATED_ITRANSACTION_COPY_DEFAULT_PRIVACY_LEVEL_ZERO
105
106#ifdef MI_NEURAYLIB_DEPRECATED_LEGACY_MDL_API
107#ifdef MI_PLATFORM_WINDOWS
108#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_LEGACY_MDL_API has been removed")
109#else
110#warning Support for macro MI_NEURAYLIB_DEPRECATED_LEGACY_MDL_API has been removed
111#endif
112#endif
113
114#ifdef MI_NEURAYLIB_DEPRECATED_ITRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO
115#ifdef MI_PLATFORM_WINDOWS
116#pragma message("Support for macro " \
117 ";MI_NEURAYLIB_DEPRECATED_ITRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO " \
118 "has been removed")
119#else
120#warning Support for macro \
121 MI_NEURAYLIB_DEPRECATED_ITRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO \
122 has been removed
123#endif
124#endif
125
126#ifdef MI_NEURAYLIB_DEPRECATED_IDICE_TRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO
127#ifdef MI_PLATFORM_WINDOWS
128#pragma message("Support for macro " \
129 ";MI_NEURAYLIB_DEPRECATED_IDICE_TRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO " \
130 "has been removed")
131#else
132#warning Support for macro \
133 MI_NEURAYLIB_DEPRECATED_IDICE_TRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO \
134 has been removed
135#endif
136#endif
137
138#ifdef MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
139#ifdef MI_PLATFORM_WINDOWS
140#pragma message("Support for macro " \
141 ";MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION has been removed")
142#else
143#warning Support for macro MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION has been removed
144#endif
145#endif
146
147#ifdef MI_NEURAYLIB_DEPRECATED_NO_EXPLICIT_TRANSACTION
148#ifdef MI_PLATFORM_WINDOWS
149#pragma message("Support for macro " \
150 ";MI_NEURAYLIB_DEPRECATED_NO_EXPLICIT_TRANSACTION has been removed")
151#else
152#warning Support for macro MI_NEURAYLIB_DEPRECATED_NO_EXPLICIT_TRANSACTION has been removed
153#endif
154#endif
155
156#ifdef MI_NEURAYLIB_DEPRECATED_7_1
157#ifdef MI_PLATFORM_WINDOWS
158#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_7_1 has been removed")
159#else
160#warning Support for macro MI_NEURAYLIB_DEPRECATED_7_1 has been removed
161#endif
162#endif
163
164#ifdef MI_NEURAYLIB_DEPRECATED_7_2
165#ifdef MI_PLATFORM_WINDOWS
166#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_7_2 has been removed")
167#else
168#warning Support for macro MI_NEURAYLIB_DEPRECATED_7_2 has been removed
169#endif
170#endif
171
172#ifdef MI_NEURAYLIB_DEPRECATED_7_3
173#ifdef MI_PLATFORM_WINDOWS
174#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_7_3 has been removed")
175#else
176#warning Support for macro MI_NEURAYLIB_DEPRECATED_7_3 has been removed
177#endif
178#endif
179
180#ifdef MI_NEURAYLIB_DEPRECATED_8_0
181#ifdef MI_PLATFORM_WINDOWS
182#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_8_0 has been removed")
183#else
184#warning Support for macro MI_NEURAYLIB_DEPRECATED_8_0 has been removed
185#endif
186#endif
187
188#ifdef MI_NEURAYLIB_DEPRECATED_8_1
189#ifdef MI_PLATFORM_WINDOWS
190#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_8_1 has been removed")
191#else
192#warning Support for macro MI_NEURAYLIB_DEPRECATED_8_1 has been removed
193#endif
194#endif
195
196#ifdef MI_NEURAYLIB_DEPRECATED_9_1
197#ifdef MI_PLATFORM_WINDOWS
198#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_9_1 has been removed")
199#else
200#warning Support for macro MI_NEURAYLIB_DEPRECATED_9_1 has been removed
201#endif
202#endif
203
204#ifdef MI_NEURAYLIB_DEPRECATED_11_1
205#ifdef MI_PLATFORM_WINDOWS
206#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_11_1 has been removed")
207#else
208#warning Support for macro MI_NEURAYLIB_DEPRECATED_11_1 has been removed
209#endif
210#endif
211
212#ifdef MI_NEURAYLIB_DEPRECATED_13_0
213#ifdef MI_PLATFORM_WINDOWS
214#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_13_0 has been removed")
215#else
216#warning Support for macro MI_NEURAYLIB_DEPRECATED_13_0 has been removed
217#endif
218#endif
219 // end group mi_neuray_version
221
222#endif // MI_NEURAYLIB_VERSION_H
Configuration of the Base API.