5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
22 static constexpr const char* TypeName =
23 "ExtensionMeshPrimitiveKhrMaterialsVariantsMappingsValue";
38 int32_t material = -1;
46 std::optional<std::string>
name;
60 accum += int64_t(
sizeof(int32_t) * this->variants.capacity());
62 accum += int64_t(this->name->capacity() *
sizeof(
char));
Classes for working with glTF models.
ExtensionMeshPrimitiveKhrMaterialsVariants Mappings Value.
std::vector< int32_t > variants
An array of variant index values.
std::optional< std::string > name
The user-defined name of this variant material mapping.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
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 ...