Accelerated Computation Engine
|
#include <opencl_commandqueue.h>
Public Member Functions | |
CommandQueue (Context *context, Device *device, QObject *parent=nullptr) | |
virtual | ~CommandQueue () override final |
cl_command_queue | id () const |
Device * | device () const |
This contains an OpenCL command queue. This is a very basic class that simply maintains ownership of an underlying command queue. The main purpose of this class is to be used by other classes that add commands to its underlying command queue.
|
explicit |
Constructs a new command queue with the given context, device, and optional parent. If the given device is not part of the given context then an exception is thrown.
context | Pointer to context this command queue is created from. |
device | Pointer to device this command queue is created from. |
parent | Optional parent for this new command queue. |
|
finaloverridevirtual |
Releases the underlying OpenCL command queue resource.
Device * CommandQueue::device | ( | ) | const |
Returns a pointer to the device that this command queue uses.
cl_command_queue CommandQueue::id | ( | ) | const |