Struct CompositeMetadata

Struct Documentation

struct CompositeMetadata

Metadata for composite resources containing multiple sub-resources.

Composite resources (like GLTF files) contain multiple embedded assets. This metadata stores the child resources discovered during metadata enrichment. The GltfLoader uses this to create separate resource entries for each texture, material, mesh, and scene found in the GLTF file.

See also

GltfLoader::enrich_metadata() for how children are populated

See also

ResourceType::Composite for composite resource handling

Public Functions

void archive(ArchiveObject &archive) const

Public Members

std::unordered_map<std::string, SourceMetadata> children

Map of child resource names to their metadata.

std::string type

Type identifier for the composite (e.g., “gltf”)

Public Static Functions

static CompositeMetadata dearchive(ArchiveObject &archive)