Add Buffer methods

flush, setArrayData, setElement, getElement, getElementCount, getElementStride, getSize, getFormat
This commit is contained in:
Alex Szpakowski
2020-07-25 19:48:54 -03:00
parent 1d087cc5c2
commit d75f5df80d
6 changed files with 264 additions and 6 deletions
+3 -3
View File
@@ -66,12 +66,12 @@ public:
{
std::string name;
DataFormat format;
int arraySize;
int arrayLength;
DataDeclaration(const std::string &name, DataFormat format, int arraySize = 0)
DataDeclaration(const std::string &name, DataFormat format, int arrayLength = 0)
: name(name)
, format(format)
, arraySize(arraySize)
, arrayLength(arrayLength)
{}
};