summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-09-26 16:48:11 +0200
committerCNugteren <web@cedricnugteren.nl>2015-09-26 16:48:11 +0200
commit04d28b0420b7aef7c1bb9b6eec8b723b04e9bd9f (patch)
tree304eaf56c314957b15b302a2f8d1cfb90e833939 /include
parentde6547a92b16bd2220a103aa6606a49eb7231301 (diff)
Made buffer copying a const-method for the source
Diffstat (limited to 'include')
-rw-r--r--include/internal/clpp11.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/clpp11.h b/include/internal/clpp11.h
index 2c2cc797..df7a0d82 100644
--- a/include/internal/clpp11.h
+++ b/include/internal/clpp11.h
@@ -493,11 +493,11 @@ class Buffer {
}
// Copies the contents of this buffer into another device buffer
- void CopyToAsync(const Queue &queue, const size_t size, const Buffer<T> &destination) {
+ void CopyToAsync(const Queue &queue, const size_t size, const Buffer<T> &destination) const {
CheckError(clEnqueueCopyBuffer(queue(), *buffer_, destination(), 0, 0, size*sizeof(T), 0,
nullptr, nullptr));
}
- void CopyTo(const Queue &queue, const size_t size, const Buffer<T> &destination) {
+ void CopyTo(const Queue &queue, const size_t size, const Buffer<T> &destination) const {
CopyToAsync(queue, size, destination);
queue.Finish();
}