C++ API Reference
|
Helper class to keep track of CL events. More...
#include <MPxGPUDeformer.h>
Public Member Functions | |
MGPUEventList () | |
Constructs a MGPUEventList. | |
MGPUEventList (const MGPUEventList &) | |
Constructs a MGPUEventList. More... | |
~MGPUEventList () | |
Destructor. | |
void | add (const MAutoCLEvent &event) |
This method adds a new event to the list. More... | |
void | add (MOpenCLBuffer &buf) |
This method adds the bufferReadyEvent of a buffer to the list. More... | |
const cl_event * | array () const |
This method returns the array of events contained in the MGPUEventList. More... | |
cl_uint | size () const |
This method returns the number of events contained in the MGPUEventList. More... | |
Helper class to keep track of CL events.
MGPUEventList is a simple class to make it easier to manage an event wait list for kernels that are queued up.
MGPUEventList | ( | const MGPUEventList & | other | ) |
Constructs a MGPUEventList.
[in] | other | The MGPUEventList to copy. |
void add | ( | const MAutoCLEvent & | event | ) |
This method adds a new event to the list.
[in] | event | The event to add |
void add | ( | MOpenCLBuffer & | buf | ) |
This method adds the bufferReadyEvent of a buffer to the list.
[in] | buf | The buffer of which we want to add the bufferReadyEvent |
const cl_event * array | ( | ) | const |
This method returns the array of events contained in the MGPUEventList.
cl_uint size | ( | ) | const |
This method returns the number of events contained in the MGPUEventList.