47 lines
677 B
C++
47 lines
677 B
C++
#pragma once
|
|
|
|
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";
|
|
}
|
|
}
|
|
} |