5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/NamedObject.h>
19 static constexpr const char*
TypeName =
"BufferView";
Classes for working with glTF models.
Known values for The hint representing the intended GPU buffer type to use with this buffer view.
static constexpr int32_t ELEMENT_ARRAY_BUFFER
ELEMENT_ARRAY_BUFFER (34963)
static constexpr int32_t ARRAY_BUFFER
ARRAY_BUFFER (34962)
A view into a buffer generally representing a subset of the buffer.
int64_t byteLength
The length of the bufferView in bytes.
static constexpr const char * TypeName
The original name of this type.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
int32_t buffer
The index of the buffer.
std::optional< int64_t > byteStride
The stride, in bytes.
std::optional< int32_t > target
The hint representing the intended GPU buffer type to use with this buffer view.
int64_t byteOffset
The offset into the buffer in bytes.
The base class for objects in a glTF that have a name.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...