#include <HostOnlyTask.h>
Public Member Functions | |
HostOnlyTask (std::function< void(std::exception_ptr)> task) | |
void | operator() (std::exception_ptr eptr) const |
Private Attributes | |
std::function< void(std::exception_ptr)> | task_ |
A task that is guaranted not to call any GPU-ralated APIs
These tasks can be enqueued directly to the native GPU queues, without the use of a dedicated host-side worker thread.
Definition at line 17 of file HostOnlyTask.h.
|
inline |
Definition at line 19 of file HostOnlyTask.h.
|
inline |
Definition at line 21 of file HostOnlyTask.h.
References task_.
|
private |
Definition at line 24 of file HostOnlyTask.h.
Referenced by operator()().