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
Manages an array-worth of data.
Definition: ArrayHandle.h:300
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
bool TryExecute(Functor &&functor, Args &&... args)
Try to execute a functor on a set of devices until one succeeds.
Definition: TryExecute.h:244
#define VTKM_CONT
Definition: ExportMacros.h:57
bool IsOnDevice(vtkm::cont::DeviceAdapterId device) const
Returns true if the ArrayHandle's data is on the given device.
Definition: ArrayHandle.h:649
This class is thrown when a VTKm function or method encounters an invalid value that inhibits progres...
Definition: ErrorBadValue.h:25
void TransferToOpenGL(const vtkm::cont::ArrayHandle< ValueType, StorageTag > &handle, BufferState &state, DeviceAdapterTag)
Manages transferring an ArrayHandle to opengl .
Definition: TransferToOpenGL.h:41