#include <opencl_program.h>
|
| Program (Context *context, const QStringList &paths, QObject *parent) |
|
virtual | ~Program () override final |
|
cl_program | id () const |
|
This contains an OpenCL program. The primary purpose of this class is to build a given list of files assumed to be OpenCL kernel source code. All devices part of the context this program is derived from compiles all the source files given. The only other purpose of this class is to provide its OpenCL program ID to create kernels from the built program kernel code.
◆ Program()
Program::Program |
( |
Context * |
context, |
|
|
const QStringList & |
paths, |
|
|
QObject * |
parent |
|
) |
| |
|
explicit |
Construct a new program with the given context, list of OpenCL kernel source code file paths, and optional parent. If any OpenCL error occurs then an exception is thrown.
- Parameters
-
context | Pointer to context this program is created from. |
paths | List of file paths containing OpenCL kernel source code that this program builds for all devices of the given context. |
parent | Optional parent for this new program. |
◆ ~Program()
Releases the underlying OpenCL program that this object represents.
◆ id()
cl_program Program::id |
( |
| ) |
const |
Returns the OpenCL program ID of this object.
- Returns
- OpenCL program ID of this object.
The documentation for this class was generated from the following files: