Go to the documentation of this file.
10 #ifndef vtk_m_interop_TransferToOpenGL_h
11 #define vtk_m_interop_TransferToOpenGL_h
40 template <
typename ValueType,
class StorageTag,
class DeviceAdapterTag>
45 vtkm::interop::internal::TransferToOpenGL<ValueType, DeviceAdapterTag> toGL(state);
46 toGL.Transfer(handle);
62 template <
typename ValueType,
typename StorageTag>
70 TransferToOpenGL(handle, state, device);
95 #endif //vtk_m_interop_TransferToOpenGL_h
VTKM_CONT void TransferToOpenGL(const vtkm::cont::ArrayHandle< ValueType, StorageTag > &handle, BufferState &state, DeviceAdapterTag)
Manages transferring an ArrayHandle to opengl .
Definition: TransferToOpenGL.h:41
Manages an array-worth of data.
Definition: ArrayHandle.h:283
Manages the state for transferring an ArrayHandle to opengl.
Definition: BufferState.h:56
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_CONT
Definition: ExportMacros.h:57
This class is thrown when a VTKm function or method encounters an invalid value that inhibits progres...
Definition: ErrorBadValue.h:25
VTKM_CONT bool IsOnDevice(vtkm::cont::DeviceAdapterId device) const
Returns true if the ArrayHandle's data is on the given device.
Definition: ArrayHandle.h:624
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