Introduced in 2023.0 More...
#include <MOpenCLAutoPtr.h>
Public Member Functions | |
MAutoCLEventList () | |
Constructs a MAutoCLEventList. | |
MAutoCLEventList (const MAutoCLEventList &) | |
Constructs a MAutoCLEventList. More... | |
~MAutoCLEventList () | |
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 MAutoCLEventList. More... | |
cl_uint | size () const |
This method returns the number of events contained in the MAutoCLEventList. More... | |
Introduced in 2023.0
Helper class to keep track of CL events
MAutoCLEventList is a simple class to make it easier to manage an event wait list for kernels that are queued up.
Note: this was originally available in Maya 2022 as MGPUEventList in the OpenMayaAnim module. MGPUEventList is now a typedef of MAutoCLEventList.
MAutoCLEventList | ( | const MAutoCLEventList & | other | ) |
Constructs a MAutoCLEventList.
[in] | other | The MAutoCLEventList 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 MAutoCLEventList.
cl_uint size | ( | ) | const |
This method returns the number of events contained in the MAutoCLEventList.