Path: blob/master/thirdparty/embree/include/embree4/rtcore_config.h
9905 views
// Copyright 2009-2021 Intel Corporation1// SPDX-License-Identifier: Apache-2.023#pragma once45#if !defined(EMBREE_SYCL_SUPPORT)6// #cmakedefine EMBREE_SYCL_SUPPORT7#endif89#define RTC_VERSION_MAJOR 410#define RTC_VERSION_MINOR 411#define RTC_VERSION_PATCH 012#define RTC_VERSION 4040013#define RTC_VERSION_STRING "4.4.0"1415#define RTC_MAX_INSTANCE_LEVEL_COUNT 11617// #cmakedefine EMBREE_GEOMETRY_INSTANCE_ARRAY18#if defined(EMBREE_GEOMETRY_INSTANCE_ARRAY)19#define RTC_GEOMETRY_INSTANCE_ARRAY20#endif2122// #cmakedefine01 EMBREE_SYCL_GEOMETRY_CALLBACK2324#define EMBREE_MIN_WIDTH 025#define RTC_MIN_WIDTH EMBREE_MIN_WIDTH2627#if !defined(EMBREE_STATIC_LIB)28#define EMBREE_STATIC_LIB29#endif30// #cmakedefine EMBREE_API_NAMESPACE3132#if defined(EMBREE_API_NAMESPACE)33# define RTC_NAMESPACE34# define RTC_NAMESPACE_BEGIN namespace {35# define RTC_NAMESPACE_END }36# define RTC_NAMESPACE_USE using namespace;37# define RTC_API_EXTERN_C38# define RTC_API_EXTERN_CPP39# undef EMBREE_API_NAMESPACE40#else41# define RTC_NAMESPACE_BEGIN42# define RTC_NAMESPACE_END43# define RTC_NAMESPACE_USE44# if defined(__cplusplus)45# define RTC_API_EXTERN_C extern "C"46# define RTC_API_EXTERN_CPP extern "C++"47# else48# define RTC_API_EXTERN_C49# endif50#endif5152#if defined(ISPC)53# define RTC_API_IMPORT extern "C" unmasked54# define RTC_API_EXPORT extern "C" unmasked55#elif defined(EMBREE_STATIC_LIB)56# define RTC_API_IMPORT RTC_API_EXTERN_C57# define RTC_API_EXPORT RTC_API_EXTERN_C58#elif defined(_WIN32)59# define RTC_API_IMPORT RTC_API_EXTERN_C __declspec(dllimport)60# define RTC_API_EXPORT RTC_API_EXTERN_C __declspec(dllexport)61#else62# define RTC_API_IMPORT RTC_API_EXTERN_C63# define RTC_API_EXPORT RTC_API_EXTERN_C __attribute__ ((visibility ("default")))64#endif6566#if defined(ISPC)67# define RTC_API_IMPORT_CPP extern "C++" unmasked68# define RTC_API_EXPORT_CPP extern "C++" unmasked69#elif defined(EMBREE_STATIC_LIB)70# define RTC_API_IMPORT_CPP RTC_API_EXTERN_CPP71# define RTC_API_EXPORT_CPP RTC_API_EXTERN_CPP72#elif defined(_WIN32)73# define RTC_API_IMPORT_CPP RTC_API_EXTERN_CPP __declspec(dllimport)74# define RTC_API_EXPORT_CPP RTC_API_EXTERN_CPP __declspec(dllexport)75#else76# define RTC_API_IMPORT_CPP RTC_API_EXTERN_CPP77# define RTC_API_EXPORT_CPP RTC_API_EXTERN_CPP __attribute__ ((visibility ("default")))78#endif7980#if defined(RTC_EXPORT_API)81# define RTC_API RTC_API_EXPORT82#else83# define RTC_API RTC_API_IMPORT84#endif8586#if defined(RTC_EXPORT_API)87# define RTC_API_CPP RTC_API_EXPORT_CPP88#else89# define RTC_API_CPP RTC_API_IMPORT_CPP90#endif9192#if defined(ISPC)93# define RTC_SYCL_INDIRECTLY_CALLABLE94#elif defined(__SYCL_DEVICE_ONLY__)95# define RTC_SYCL_INDIRECTLY_CALLABLE [[intel::device_indirectly_callable]] SYCL_EXTERNAL96# define RTC_SYCL_API SYCL_EXTERNAL97#else98# define RTC_SYCL_INDIRECTLY_CALLABLE99# define RTC_SYCL_API RTC_API100#endif101102103104