MCPcopy Create free account
hub / github.com/comaps/comaps / GetApiVersion

Function GetApiVersion

dev_sandbox/main.cpp:160–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160dp::ApiVersion GetApiVersion(char const * apiLabel)
161{
162 std::string_view v(apiLabel);
163 if (v == "Metal")
164 return dp::ApiVersion::Metal;
165 if (v == "Vulkan")
166 return dp::ApiVersion::Vulkan;
167 if (v == "OpenGL")
168 return dp::ApiVersion::OpenGLES3;
169 return dp::ApiVersion::Invalid;
170}
171
172#if defined(OMIM_OS_LINUX)
173class LinuxGuiThread : public base::TaskLoop

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected