5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
10#include <unordered_map>
21 static constexpr const char* TypeName =
"ExtensionExtMeshGpuInstancing";
24 static constexpr const char* ExtensionName =
"EXT_mesh_gpu_instancing";
51 this->attributes.bucket_count() *
52 (
sizeof(std::string) +
sizeof(int32_t)));
53 for (
const auto& [k, v] : this->attributes) {
54 accum += int64_t(k.capacity() *
sizeof(
char) -
sizeof(std::string));
55 accum += int64_t(
sizeof(int32_t));
Classes for working with glTF models.
glTF extension defines instance attributes for a node with a mesh.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::unordered_map< std::string, int32_t > attributes
A dictionary object, where each key corresponds to instance attribute and each value is the index of ...
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...