Files
OpenVulkano/openVulkanoCpp/Base/PlatformEnums.hpp
2020-09-26 21:13:14 +02:00

55 lines
907 B
C++

/*
* 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 <string>
namespace openVulkanoCpp
{
namespace RenderAPI
{
enum RenderApi
{
VULKAN = 0,
//OpenGL,
//DirectX11,
//DirectX12,
//Metal,
MAX_VALUE
};
inline std::string ToString(RenderApi api)
{
switch (api)
{
case VULKAN: return "Vulkan";
}
return "Invalid";
}
}
namespace Platform
{
enum Platform
{
Windows = 0, MacOS, Linux, Android, iOS, MAX_VALUE
};
inline std::string ToString(Platform os)
{
switch (os)
{
case Windows: return "Windows";
case MacOS: return "MacOS";
case Linux: return "Linux";
case Android: return "Android";
case iOS: return "iOS";
}
return "Invalid";
}
}
}