summaryrefslogtreecommitdiffstats
path: root/src/opencl/qclworksize.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opencl/qclworksize.h')
-rw-r--r--src/opencl/qclworksize.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/opencl/qclworksize.h b/src/opencl/qclworksize.h
index e0c5b7f..290197c 100644
--- a/src/opencl/qclworksize.h
+++ b/src/opencl/qclworksize.h
@@ -90,6 +90,8 @@ private:
size_t m_sizes[3];
};
+Q_DECLARE_TYPEINFO(QCLWorkSize, Q_MOVABLE_TYPE);
+
inline bool QCLWorkSize::operator==(const QCLWorkSize &other) const
{
return m_dim == other.m_dim &&
@@ -106,6 +108,15 @@ inline bool QCLWorkSize::operator!=(const QCLWorkSize &other) const
m_sizes[2] != other.m_sizes[2];
}
+#ifndef QT_NO_DATASTREAM
+Q_CL_EXPORT QDataStream &operator<<(QDataStream &, const QCLWorkSize &);
+Q_CL_EXPORT QDataStream &operator>>(QDataStream &, QCLWorkSize &);
+#endif
+
+#ifndef QT_NO_DEBUG_STREAM
+Q_CL_EXPORT QDebug operator<<(QDebug, const QCLWorkSize &);
+#endif
+
QT_END_NAMESPACE
QT_END_HEADER