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:
amzn-mike
2021-10-26 11:07:22 -05:00
committed by GitHub
parent 81acd559d0
commit ee6ceba5ce
27 changed files with 21893 additions and 31 deletions
@@ -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);
}
}