MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / wsi_to_string

Function wsi_to_string

cube/cube.cpp:262–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260};
261
262const char *wsi_to_string(WsiPlatform wsi_platform) {
263 switch (wsi_platform) {
264 case (WsiPlatform::auto_):
265 return "auto";
266#if defined(VK_USE_PLATFORM_WIN32_KHR)
267 case (WsiPlatform::win32):
268 return "win32";
269#endif
270#if defined(VK_USE_PLATFORM_METAL_EXT)
271 case (WsiPlatform::metal):
272 return "metal";
273#endif
274#if defined(VK_USE_PLATFORM_ANDROID_KHR)
275 case (WsiPlatform::android):
276 return "android";
277#endif
278#if defined(VK_USE_PLATFORM_SCREEN_QNX)
279 case (WsiPlatform::qnx):
280 return "qnx";
281#endif
282#if defined(VK_USE_PLATFORM_XCB_KHR)
283 case (WsiPlatform::xcb):
284 return "xcb";
285#endif
286#if defined(VK_USE_PLATFORM_XLIB_KHR)
287 case (WsiPlatform::xlib):
288 return "xlib";
289#endif
290#if defined(VK_USE_PLATFORM_WAYLAND_KHR)
291 case (WsiPlatform::wayland):
292 return "wayland";
293#endif
294#if defined(VK_USE_PLATFORM_DIRECTFB_EXT)
295 case (WsiPlatform::directfb):
296 return "directfb";
297#endif
298#if defined(VK_USE_PLATFORM_DISPLAY_KHR)
299 case (WsiPlatform::display):
300 return "display";
301#endif
302#if defined(VK_USE_PLATFORM_FUCHSIA)
303 case (WsiPlatform::fuchsia_display):
304 return "fuchsia_display";
305 case (WsiPlatform::fuchsia_scenic):
306 return "fuchsia_scenic";
307#endif
308 default:
309 return "unknown";
310 }
311};
312
313struct SubmissionResources {
314 vk::Fence fence;

Callers 1

init_vkMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected