17#ifndef AGX_TASKTEMPLATE_H
18#define AGX_TASKTEMPLATE_H
33#define AGX_TASK(_Name, _Path) \
36 agx::TaskPlugin plugin_ ## _Name(_Path, agx::Device::CPU); \
37 agx::TaskPluginImplementationT<_Name> plugin_implementation(&plugin_ ## _Name); \
58 return implementation == 0 ? new ::_Name(device) :
nullptr; \
67#define AGX_OVERLOADED_TASK(_Name, _DeviceType) \
72AGXTASK_EXPORT const char *name() \
78AGXTASK_EXPORT agx::Device::Type deviceType() \
83AGXTASK_EXPORT agx::Task *create(agx::Device *device, agx::UInt implementation) \
85 return constructors[implementation] ? constructors[implementation](device) : nullptr; \
88AGXTASK_EXPORT void destroy(agx::Task * ) \
An agx::Device is an abstract representation of a device on which data can be stored and processed.
Type
Explicit list of device types.
A representation of a generic task.