20 #include "../exception.h"
TaskDeviceRequirement
Specifies which device (CPU and/or GPU) is used to run the task.
@ GPU_ONLY
this task requires GPU, otherwise it cannot run
bool process(TaskThread &thread)
Executes the task on CPU within a given thread.
ThreadIndex getMaxThreads() const
Gives the upper limint on the number of threads the task may be performed by.
TaskDeviceRequirement getUsedDevices() const
Communicates devices (CPU and/or GPU) the task is run on.
static void insanity(const char *message)
unsigned char ThreadIndex
number of threads / thread index