#include <HostOnlyTask.h>
Public Member Functions | |
HostOnlyTask (std::function< void()> task) | |
void | operator() () const |
Private Attributes | |
std::function< void()> | 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 15 of file HostOnlyTask.h.
|
inline |
Definition at line 17 of file HostOnlyTask.h.
|
inline |
|
private |
Definition at line 22 of file HostOnlyTask.h.
Referenced by operator()().