Viskores
1.0
viskores
interop
anari
ViskoresANARITypes.h
Go to the documentation of this file.
1
//============================================================================
2
// The contents of this file are covered by the Viskores license. See
3
// LICENSE.txt for details.
4
//
5
// By contributing to this file, all contributors agree to the Developer
6
// Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7
//============================================================================
8
9
//============================================================================
10
// Copyright (c) Kitware, Inc.
11
// All rights reserved.
12
// See LICENSE.txt for details.
13
//
14
// This software is distributed WITHOUT ANY WARRANTY; without even
15
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16
// PURPOSE. See the above copyright notice for more information.
17
//============================================================================
18
19
#ifndef viskores_interop_anari_ViskoresANARITypes_h
20
#define viskores_interop_anari_ViskoresANARITypes_h
21
22
// viskores
23
#include <
viskores/Types.h
>
24
// anari
25
#include <anari/anari_cpp.hpp>
26
#include <anari/anari_cpp/ext/linalg.h>
27
28
namespace
anari_cpp
29
{
30
32
33
using namespace
::
anari
;
34
using namespace
::anari::math;
35
36
}
// namespace anari_cpp
37
38
namespace
anari
39
{
40
44
45
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec2f_32
, ANARI_FLOAT32_VEC2);
46
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec3f_32
, ANARI_FLOAT32_VEC3);
47
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec4f_32
, ANARI_FLOAT32_VEC4);
48
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec2i_32
, ANARI_INT32_VEC2);
49
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec3i_32
, ANARI_INT32_VEC3);
50
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec4i_32
, ANARI_INT32_VEC4);
51
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec2ui_32
, ANARI_UINT32_VEC2);
52
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec3ui_32
, ANARI_UINT32_VEC3);
53
ANARI_TYPEFOR_SPECIALIZATION
(
viskores::Vec4ui_32
, ANARI_UINT32_VEC4);
54
55
}
// namespace anari
56
57
#endif
anari
Definition:
ViskoresANARITypes.h:38
anari_cpp
Definition:
ViskoresANARITypes.h:28
Types.h
anari::ANARI_TYPEFOR_SPECIALIZATION
ANARI_TYPEFOR_SPECIALIZATION(viskores::Vec2f_32, ANARI_FLOAT32_VEC2)
These declarations let ANARI C++ bindings infer the correct ANARIDataType enum value from Viskores's ...
viskores::Vec< viskores::Float32, 2 >
Generated by
1.8.17