Go to the documentation of this file.
10 #ifndef vtk_m_rendering_raytracing_RayTracingTypeDefs_h
11 #define vtk_m_rendering_raytracing_RayTracingTypeDefs_h
13 #include <type_traits>
31 #define BOUNDS_CHECK(HANDLE, INDEX) BoundsCheck((HANDLE), (INDEX), __FILE__, __LINE__)
33 #define BOUNDS_CHECK(HANDLE, INDEX)
36 template <
typename ArrayHandleType>
42 if (index < 0 || index >= handle.GetNumberOfValues())
43 printf(
"Bad Index %d at file %s line %d\n", (
int)index, file, line);
54 infinity = vtkm::Infinity32();
60 infinity = vtkm::Infinity64();
63 template <
typename Device>
67 inline std::string GetDeviceString<vtkm::cont::DeviceAdapterTagSerial>(
68 vtkm::cont::DeviceAdapterTagSerial)
74 inline std::string GetDeviceString<vtkm::cont::DeviceAdapterTagTBB>(vtkm::cont::DeviceAdapterTagTBB)
80 inline std::string GetDeviceString<vtkm::cont::DeviceAdapterTagOpenMP>(
81 vtkm::cont::DeviceAdapterTagOpenMP)
87 inline std::string GetDeviceString<vtkm::cont::DeviceAdapterTagCuda>(
88 vtkm::cont::DeviceAdapterTagCuda)
94 inline std::string GetDeviceString<vtkm::cont::DeviceAdapterTagKokkos>(
95 vtkm::cont::DeviceAdapterTagKokkos)
108 template <
typename Device>
156 #endif //vtk_m_rendering_raytracing_RayTracingTypeDefs_h
std::string GetDeviceString(Device)
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_EXEC_CONT void GetInfinity(T &vtkmNotUsed(infinity))
VTKM_CONT vtkm::cont::UncertainArrayHandle< ScalarRenderingTypes, VTKM_DEFAULT_STORAGE_LIST > GetScalarFieldArray(const vtkm::cont::Field &field)
Definition: RayTracingTypeDefs.h:143
vtkm::Vec< vtkm::Float32, 3 > Vec3f_32
Vec3f_32 corresponds to a 3-dimensional vector of 32-bit floating point values.
Definition: Types.h:1020
vtkm::Float64 ScalarD
Definition: RayTracingTypeDefs.h:136
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
const vtkm::cont::UnknownArrayHandle & GetData() const
vtkm::Vec< vtkm::Float64, 3 > Vec3f_64
Vec3f_64 corresponds to a 3-dimensional vector of 64-bit floating point values.
Definition: Types.h:1026
VTKM_EXEC void BoundsCheck(const ArrayHandleType &handle, const vtkm::Id &index, const char *file, int line)
Definition: RayTracingTypeDefs.h:37
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: cont/Field.h:31
VTKM_CONT bool operator()(Device)
Definition: RayTracingTypeDefs.h:109
#define VTKM_CONT
Definition: ExportMacros.h:57
#define vtkmNotUsed(parameter_name)
Simple macro to identify a parameter as unused.
Definition: ExportMacros.h:128
An ArrayHandle of an uncertain value type and storage.
Definition: UncertainArrayHandle.h:39
VTKM_CONT vtkm::cont::UncertainArrayHandle< NewValueTypeList, NewStorageTypeList > ResetTypes(NewValueTypeList=NewValueTypeList{}, NewStorageTypeList=NewStorageTypeList{}) const
Assigns potential value and storage types.
Definition: UncertainArrayHandle.h:129
float Float32
Definition: Types.h:154
double Float64
Definition: Types.h:155
std::string result
Definition: RayTracingTypeDefs.h:102
vtkm::Float32 ScalarF
Definition: RayTracingTypeDefs.h:135
DeviceStringFunctor()
Definition: RayTracingTypeDefs.h:103
Definition: RayTracingTypeDefs.h:100
VTKM_CONT bool TryExecute(Functor &&functor, Args &&... args)
Try to execute a functor on a set of devices until one succeeds.
Definition: TryExecute.h:244
VTKM_CONT vtkm::cont::UncertainArrayHandle< Vec3RenderingTypes, VTKM_DEFAULT_STORAGE_LIST > GetVec3FieldArray(const vtkm::cont::Field &field)
Definition: RayTracingTypeDefs.h:149
#define VTKM_IS_DEVICE_ADAPTER_TAG(tag)
Checks that the argument is a proper device adapter tag.
Definition: DeviceAdapterTag.h:164