graphics: move buffer:clear error checking to high level code

This commit is contained in:
Sasha Szpakowski
2024-01-02 11:13:31 -04:00
parent af840bb2cf
commit 77c5ea1d6b
8 changed files with 27 additions and 34 deletions
+3 -1
View File
@@ -141,7 +141,7 @@ public:
/**
* Reset the given portion of this buffer's data to 0.
*/
virtual void clear(size_t offset, size_t size) = 0;
void clear(size_t offset, size_t size);
/**
* Copy a portion of this Buffer's data to another buffer, using the GPU.
@@ -178,6 +178,8 @@ public:
protected:
virtual void clearInternal(size_t offset, size_t size) = 0;
std::vector<DataMember> dataMembers;
size_t arrayLength;
size_t arrayStride;