Add Buffer:clear, to reset all or part of a Buffer's contents to 0.

This commit is contained in:
Sasha Szpakowski
2023-02-19 19:36:03 -04:00
parent 11c92ece33
commit c70b0a0b03
8 changed files with 105 additions and 2 deletions
+5
View File
@@ -131,6 +131,11 @@ public:
*/
virtual bool fill(size_t offset, size_t size, const void *data) = 0;
/**
* Reset the given portion of this buffer's data to 0.
*/
virtual void clear(size_t offset, size_t size) = 0;
/**
* Copy a portion of this Buffer's data to another buffer, using the GPU.
**/