summaryrefslogtreecommitdiffstats
path: root/src/opencl/qclvector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opencl/qclvector.h')
-rw-r--r--src/opencl/qclvector.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/opencl/qclvector.h b/src/opencl/qclvector.h
index cd95d80..1864e85 100644
--- a/src/opencl/qclvector.h
+++ b/src/opencl/qclvector.h
@@ -107,19 +107,11 @@ public:
T &operator[](int index);
const T &operator[](int index) const;
- void map();
- void unmap();
- bool isMapped() const;
-
void read(T *data, int count, int offset = 0);
void write(const T *data, int count, int offset = 0);
void write(const QVector<T> &data, int offset = 0);
- T *data() const;
-
- cl_mem memoryId() const;
QCLContext *context() const;
-
QCLBuffer toBuffer() const;
private:
@@ -189,24 +181,6 @@ Q_INLINE_TEMPLATE const T &QCLVector<T>::operator[](int index) const
}
template <typename T>
-Q_INLINE_TEMPLATE void QCLVector<T>::map()
-{
- QCLVectorBase::map();
-}
-
-template <typename T>
-Q_INLINE_TEMPLATE void QCLVector<T>::unmap()
-{
- QCLVectorBase::unmap();
-}
-
-template <typename T>
-Q_INLINE_TEMPLATE bool QCLVector<T>::isMapped() const
-{
- return m_mapped != 0;
-}
-
-template <typename T>
Q_INLINE_TEMPLATE void QCLVector<T>::write
(const T *data, int count, int offset)
{
@@ -230,20 +204,6 @@ Q_INLINE_TEMPLATE void QCLVector<T>::write
}
template <typename T>
-Q_INLINE_TEMPLATE T *QCLVector<T>::data() const
-{
- if (!m_mapped)
- map();
- return reinterpret_cast<T *>(m_mapped);
-}
-
-template <typename T>
-Q_INLINE_TEMPLATE cl_mem QCLVector<T>::memoryId() const
-{
- return QCLVectorBase::memoryId();
-}
-
-template <typename T>
Q_INLINE_TEMPLATE QCLContext *QCLVector<T>::context() const
{
return QCLVectorBase::context();