diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-03-16 10:42:12 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-03-18 22:59:20 +0300 |
commit | 7ee816e32f3655d4ca8abb555f885d8de9ba0520 (patch) | |
tree | 50190c369e80c20fadc1bc55d56f160188a1ff90 /source/blender/gpu/intern/gpu_backend.hh | |
parent | 5bd38f3be8542f09ece0d936b04dba3f8854cb51 (diff) |
GPU: StorageBuf: Add method to clear the buffer in place.
This is a faster way to clear a buffer instead of reuploading new data.
It is equivalent to `memset` and runs directly on the GPU.
This is better to clear huge buffers and to avoid the sync cost of data upload.
Diffstat (limited to 'source/blender/gpu/intern/gpu_backend.hh')
0 files changed, 0 insertions, 0 deletions