esp/metadata/MetadataUtils.h file

Namespaces

namespace esp
Root namespace.
namespace esp::metadata

Functions

auto getShaderTypeFromJsonDoc(const io::JsonGenericValue& jsonDoc) -> std::string
This function is accessed by object and stage attributes loading, as well as scene instance loading. This function will process data held in a json doc with the tag "shader_type", and return the int value found, or the int value of esp::metadata::attributes::ObjectInstanceShaderType::Unknown if no data found.

Function documentation

std::string getShaderTypeFromJsonDoc(const io::JsonGenericValue& jsonDoc)

This function is accessed by object and stage attributes loading, as well as scene instance loading. This function will process data held in a json doc with the tag "shader_type", and return the int value found, or the int value of esp::metadata::attributes::ObjectInstanceShaderType::Unknown if no data found.

Parameters
jsonDoc The json document to query for the tag of interest
Returns The shader type specified in the document, or Unknown, casted to an int.