diff --git a/openVulkanoCpp/Base/UUID.hpp b/openVulkanoCpp/Base/UUID.hpp new file mode 100644 index 0000000..0fa9288 --- /dev/null +++ b/openVulkanoCpp/Base/UUID.hpp @@ -0,0 +1,14 @@ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include + +namespace OpenVulkano +{ + typedef stud::uuid UUID; +} diff --git a/openVulkanoCpp/Extensions/YamlCppConverters.hpp b/openVulkanoCpp/Extensions/YamlCppConverters.hpp index 06cf32d..1d273a0 100644 --- a/openVulkanoCpp/Extensions/YamlCppConverters.hpp +++ b/openVulkanoCpp/Extensions/YamlCppConverters.hpp @@ -6,20 +6,20 @@ #pragma once +#include "Base/UUID.hpp" #include -#include namespace YAML { template<> - struct convert + struct convert { - static Node encode(const stud::uuid& uuid) + static Node encode(const OpenVulkano::UUID& uuid) { return Node(uuid.string()); } - static bool decode(const Node& node, stud::uuid& uuid) + static bool decode(const Node& node, OpenVulkano::UUID& uuid) { if (node.IsScalar()) {