diff --git a/openVulkanoCpp/Extensions/YamlCppConverters.hpp b/openVulkanoCpp/Extensions/YamlCppConverters.hpp index 3586dac..6f44676 100644 --- a/openVulkanoCpp/Extensions/YamlCppConverters.hpp +++ b/openVulkanoCpp/Extensions/YamlCppConverters.hpp @@ -16,12 +16,32 @@ #include "Math/RGB565.hpp" #include "Math/RGBA5551.hpp" #include "Math/Timestamp.hpp" +#include "Data/Containers/String.hpp" #include #include #include namespace YAML { + template<> + struct convert + { + static Node encode(const OpenVulkano::String& string) + { + return Node(static_cast(string)); + } + + static bool decode(const Node& node, OpenVulkano::String& string) + { + if (node.IsScalar()) + { + string = node.as(); + return true; + } + return false; + } + }; + template<> struct convert {