diff options
Diffstat (limited to 'intern/cycles/device/device_memory.h')
-rw-r--r-- | intern/cycles/device/device_memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/device/device_memory.h b/intern/cycles/device/device_memory.h index 60740807568..2949773ef0c 100644 --- a/intern/cycles/device/device_memory.h +++ b/intern/cycles/device/device_memory.h @@ -427,6 +427,11 @@ template<typename T> class device_vector : public device_memory { device_copy_to(); } + void copy_from_device() + { + device_copy_from(0, data_width, data_height, sizeof(T)); + } + void copy_from_device(int y, int w, int h) { device_copy_from(y, w, h, sizeof(T)); |