diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-09-27 04:53:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-10-04 22:11:14 +0300 |
commit | 5bb677e592fd5902600f41653a2d56b4d9ae8c56 (patch) | |
tree | 0b03c1e67ec400df23e7ec45ca7e0cc63c1c5ddd /intern/cycles/render/buffers.h | |
parent | 12f453820514e9478afdda0acf4c4fb1eac11e1c (diff) |
Code refactor: zero render buffers outside of kernel.
This was originally done with the first sample in the kernel for better
performance, but it doesn't work anymore with atomics. Any benefit was
very minor anyway, too small to measure it seems.
Diffstat (limited to 'intern/cycles/render/buffers.h')
-rw-r--r-- | intern/cycles/render/buffers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/buffers.h b/intern/cycles/render/buffers.h index 552dabe178a..2780fc8a68d 100644 --- a/intern/cycles/render/buffers.h +++ b/intern/cycles/render/buffers.h @@ -81,6 +81,7 @@ public: ~RenderBuffers(); void reset(Device *device, BufferParams& params); + void zero(Device *device); bool copy_from_device(Device *from_device = NULL); bool get_pass_rect(PassType type, float exposure, int sample, int components, float *pixels); |