Merge topic 'anari_sdk_compatibility'

c3489535a adjustments for upcoming ANARI-SDK changes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !3147
This commit is contained in:
Jefferson Amstutz 2023-11-03 14:36:19 +00:00 committed by Kitware Robot
commit b7125bd6fc

@ -15,15 +15,17 @@
#include <vtkm/Types.h>
// anari
#include <anari/anari_cpp.hpp>
#if ANARI_SDK_VERSION_MINOR <= 3
#include <anari/type_utility.h>
#endif
#include <anari/anari_cpp/ext/linalg.h>
namespace anari_cpp = ::anari;
namespace anari
{
#if ANARI_SDK_VERSION_MINOR >= 8
using namespace ::anari::math;
#endif
/// These declarations let ANARI C++ bindings infer the correct `ANARIDataType`
/// enum value from VTK-m's C++ math types. This header should be included
/// before any code which needs this type inference to function.