Go to the documentation of this file.
18 #ifndef viskores_interop_TransferToOpenGL_h
19 #define viskores_interop_TransferToOpenGL_h
48 template <
typename ValueType,
class StorageTag,
class DeviceAdapterTag>
54 viskores::interop::internal::TransferToOpenGL<ValueType, DeviceAdapterTag> toGL(state);
55 toGL.Transfer(handle);
71 template <
typename ValueType,
typename StorageTag>
82 TransferToOpenGL(handle, state, device);
109 #endif //viskores_interop_TransferToOpenGL_h
Manages an array-worth of data.
Definition: ArrayHandle.h:313
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
bool TryExecute(Functor &&functor, Args &&... args)
Try to execute a functor on a set of devices until one succeeds.
Definition: TryExecute.h:252
Manages the state for transferring an ArrayHandle to opengl.
Definition: BufferState.h:64
void TransferToOpenGL(const viskores::cont::ArrayHandle< ValueType, StorageTag > &handle, BufferState &state, DeviceAdapterTag)
Manages transferring an ArrayHandle to opengl .
Definition: TransferToOpenGL.h:49
bool IsOnDevice(viskores::cont::DeviceAdapterId device) const
Returns true if the ArrayHandle's data is on the given device.
Definition: ArrayHandle.h:665
This class is thrown when a Viskores function or method encounters an invalid value that inhibits pro...
Definition: ErrorBadValue.h:33