VTK-m  2.2
VtkmANARITypes.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 
11 #ifndef vtk_m_interop_anari_VtkmANARITypes_h
12 #define vtk_m_interop_anari_VtkmANARITypes_h
13 
14 // vtk-m
15 #include <vtkm/Types.h>
16 // anari
17 #include <anari/anari_cpp.hpp>
18 #include <anari/anari_cpp/ext/linalg.h>
19 
20 namespace anari_cpp
21 {
22 
24 
25 using namespace ::anari;
26 using namespace ::anari::math;
27 
28 } // namespace anari_cpp
29 
30 namespace anari
31 {
32 
36 
37 ANARI_TYPEFOR_SPECIALIZATION(vtkm::Vec2f_32, ANARI_FLOAT32_VEC2);
38 ANARI_TYPEFOR_SPECIALIZATION(vtkm::Vec3f_32, ANARI_FLOAT32_VEC3);
39 ANARI_TYPEFOR_SPECIALIZATION(vtkm::Vec4f_32, ANARI_FLOAT32_VEC4);
46 
47 } // namespace anari
48 
49 #endif
anari
Definition: VtkmANARITypes.h:30
anari_cpp
Definition: VtkmANARITypes.h:20
Types.h
vtkm::Vec< vtkm::Float32, 2 >
anari::ANARI_TYPEFOR_SPECIALIZATION
ANARI_TYPEFOR_SPECIALIZATION(vtkm::Vec2f_32, ANARI_FLOAT32_VEC2)
These declarations let ANARI C++ bindings infer the correct ANARIDataType enum value from VTK-m's C++...