diff options
author | Laszlo Agocs <[email protected]> | 2015-05-01 22:52:45 +0200 |
---|---|---|
committer | Laszlo Agocs <[email protected]> | 2015-05-02 16:18:04 +0000 |
commit | a6abebf98ecfbadfeec252283feeea9e04715581 (patch) | |
tree | 1bda4a827305380e6453a1f39250de136c2d21f6 /src/quickcl/qquickclcontext.h | |
parent | 749f98c8f28ffd06d5caccffe60edc94f280f6f7 (diff) |
Change-Id: I10ec7869659b69038811bd48b6beb7f43fbc5a8c
Reviewed-by: Laszlo Agocs <[email protected]>
Diffstat (limited to 'src/quickcl/qquickclcontext.h')
-rw-r--r-- | src/quickcl/qquickclcontext.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quickcl/qquickclcontext.h b/src/quickcl/qquickclcontext.h index d780ad5..2072188 100644 --- a/src/quickcl/qquickclcontext.h +++ b/src/quickcl/qquickclcontext.h @@ -38,6 +38,7 @@ #define QQUICKCLCONTEXT_H #include <QtQuickCL/qtquickclglobal.h> +#include <QtGui/qimage.h> QT_BEGIN_NAMESPACE @@ -62,9 +63,12 @@ public: QByteArray platformName() const; QByteArray deviceExtensions() const; + cl_program buildProgram(const QByteArray &src); cl_program buildProgramFromFile(const QString &filename); + static cl_image_format toCLImageFormat(QImage::Format format); + private: QQuickCLContextPrivate *d_ptr; }; |