VTK-m
2.2
vtkm
interop
anari
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);
40
ANARI_TYPEFOR_SPECIALIZATION
(
vtkm::Vec2i_32
, ANARI_INT32_VEC2);
41
ANARI_TYPEFOR_SPECIALIZATION
(
vtkm::Vec3i_32
, ANARI_INT32_VEC3);
42
ANARI_TYPEFOR_SPECIALIZATION
(
vtkm::Vec4i_32
, ANARI_INT32_VEC4);
43
ANARI_TYPEFOR_SPECIALIZATION
(
vtkm::Vec2ui_32
, ANARI_UINT32_VEC2);
44
ANARI_TYPEFOR_SPECIALIZATION
(
vtkm::Vec3ui_32
, ANARI_UINT32_VEC3);
45
ANARI_TYPEFOR_SPECIALIZATION
(
vtkm::Vec4ui_32
, ANARI_UINT32_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++...
Generated by
1.8.17