Materialx Protobuf API 1.39.5
Serialization API to convert between MaterialX and Google Protobuf formats.
Loading...
Searching...
No Matches
materialx_serializer.h File Reference

MaterialX Protobuf serialization and deserialization utilities. More...

#include <MaterialXCore/Document.h>
#include <MaterialXCore/Element.h>
#include <MaterialXFormat/XmlIo.h>
#include "materialx.pb.h"
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  MaterialXToProtobuf
 Converter class to transform MaterialX document objects into Protobuf MaterialXDocument messages. More...
 
class  ProtobufToMaterialX
 Converter class to transform Protobuf MaterialXDocument messages back into MaterialX document objects. More...
 
class  Util
 Utility class for inspecting and debugging Protobuf MaterialXDocument messages. More...
 
class  VersionUpgrader
 Handles schema version upgrades for MaterialX protobuf documents. More...
 

Variables

constexpr uint32_t SCHEMA_VERSION_MAJOR = 1
 
constexpr uint32_t SCHEMA_VERSION_MINOR = 39
 
constexpr uint32_t SCHEMA_VERSION_PATCH = 4
 

Detailed Description

MaterialX Protobuf serialization and deserialization utilities.

  • Defines classes to convert MaterialX documents to and from Protobuf format.
  • Provides utility functions for inspecting and debugging Protobuf documents.
  • Requires the MaterialX C++ API and the generated Protobuf C++ module.

Variable Documentation

◆ SCHEMA_VERSION_MAJOR

uint32_t SCHEMA_VERSION_MAJOR = 1
constexpr

◆ SCHEMA_VERSION_MINOR

uint32_t SCHEMA_VERSION_MINOR = 39
constexpr

◆ SCHEMA_VERSION_PATCH

uint32_t SCHEMA_VERSION_PATCH = 4
constexpr