Add serialized output version (xml) of debug scene graph (#3437)
* Add serialized output version (xml) of debug scene graph Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Fix line endings Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Fix line endings Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Update fbx unit tests to check for dbgsg.xml file Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Add dbgsg.xml comparison Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Move dbgsg files to SceneDebug sub folder Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Add shaderball.dbgsg.xml and multiple_mesh_multiple_material_override.dbgsg.xml Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Add shaderball dbgsg.xml product. Update code to look in SceneDebug for dbgsg files Fix extension concatenation Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Remove unnecessary dbgsg.xml file Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,11 @@ namespace AZ::SceneAPI::Utilities
|
||||
template <typename T>
|
||||
void DebugOutput::Write(const char* name, const AZStd::vector<T>& data)
|
||||
{
|
||||
m_output += AZStd::string::format("\t%s: Count %zu. Hash: %zu\n", name, data.size(), AZStd::hash_range(data.begin(), data.end()));
|
||||
size_t hash = AZStd::hash_range(data.begin(), data.end());
|
||||
m_output += AZStd::string::format("\t%s: Count %zu. Hash: %zu\n", name, data.size(), hash);
|
||||
|
||||
AddToNode(AZStd::string::format("%s - Count", name).c_str(), data.size());
|
||||
AddToNode(AZStd::string::format("%s - Hash", name).c_str(), hash);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
@@ -27,5 +31,9 @@ namespace AZ::SceneAPI::Utilities
|
||||
}
|
||||
|
||||
m_output += AZStd::string::format("\t%s: Count %zu. Hash: %zu\n", name, data.size(), hash);
|
||||
|
||||
AddToNode(AZStd::string::format("%s - Count", name).c_str(), data.size());
|
||||
AddToNode(AZStd::string::format("%s - Hash", name).c_str(), hash);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user