rtcore_config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Copyright 2009-2021 Intel Corporation
  2. // SPDX-License-Identifier: Apache-2.0
  3. #pragma once
  4. #if !defined(EMBREE_SYCL_SUPPORT)
  5. // #cmakedefine EMBREE_SYCL_SUPPORT
  6. #endif
  7. #define RTC_VERSION_MAJOR 4
  8. #define RTC_VERSION_MINOR 3
  9. #define RTC_VERSION_PATCH 1
  10. #define RTC_VERSION 40301
  11. #define RTC_VERSION_STRING "4.3.1"
  12. #define RTC_MAX_INSTANCE_LEVEL_COUNT 1
  13. // #cmakedefine EMBREE_GEOMETRY_INSTANCE_ARRAY
  14. #if defined(EMBREE_GEOMETRY_INSTANCE_ARRAY)
  15. #define RTC_GEOMETRY_INSTANCE_ARRAY
  16. #endif
  17. // #cmakedefine01 EMBREE_SYCL_GEOMETRY_CALLBACK
  18. #define EMBREE_MIN_WIDTH 0
  19. #define RTC_MIN_WIDTH EMBREE_MIN_WIDTH
  20. #if !defined(EMBREE_STATIC_LIB)
  21. #define EMBREE_STATIC_LIB
  22. #endif
  23. // #cmakedefine EMBREE_API_NAMESPACE
  24. #if defined(EMBREE_API_NAMESPACE)
  25. # define RTC_NAMESPACE
  26. # define RTC_NAMESPACE_BEGIN namespace {
  27. # define RTC_NAMESPACE_END }
  28. # define RTC_NAMESPACE_USE using namespace;
  29. # define RTC_API_EXTERN_C
  30. # undef EMBREE_API_NAMESPACE
  31. #else
  32. # define RTC_NAMESPACE_BEGIN
  33. # define RTC_NAMESPACE_END
  34. # define RTC_NAMESPACE_USE
  35. # if defined(__cplusplus)
  36. # define RTC_API_EXTERN_C extern "C"
  37. # else
  38. # define RTC_API_EXTERN_C
  39. # endif
  40. #endif
  41. #if defined(ISPC)
  42. # define RTC_API_IMPORT extern "C" unmasked
  43. # define RTC_API_EXPORT extern "C" unmasked
  44. #elif defined(EMBREE_STATIC_LIB)
  45. # define RTC_API_IMPORT RTC_API_EXTERN_C
  46. # define RTC_API_EXPORT RTC_API_EXTERN_C
  47. #elif defined(_WIN32)
  48. # define RTC_API_IMPORT RTC_API_EXTERN_C __declspec(dllimport)
  49. # define RTC_API_EXPORT RTC_API_EXTERN_C __declspec(dllexport)
  50. #else
  51. # define RTC_API_IMPORT RTC_API_EXTERN_C
  52. # define RTC_API_EXPORT RTC_API_EXTERN_C __attribute__ ((visibility ("default")))
  53. #endif
  54. #if defined(RTC_EXPORT_API)
  55. # define RTC_API RTC_API_EXPORT
  56. #else
  57. # define RTC_API RTC_API_IMPORT
  58. #endif
  59. #if defined(ISPC)
  60. # define RTC_SYCL_INDIRECTLY_CALLABLE
  61. #elif defined(__SYCL_DEVICE_ONLY__)
  62. # define RTC_SYCL_INDIRECTLY_CALLABLE [[intel::device_indirectly_callable]] SYCL_EXTERNAL
  63. # define RTC_SYCL_API SYCL_EXTERNAL
  64. #else
  65. # define RTC_SYCL_INDIRECTLY_CALLABLE
  66. # define RTC_SYCL_API RTC_API
  67. #endif