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

Function wsi_to_string

cube/cube.c:345–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343};
344
345const char *wsi_to_string(WSI_PLATFORM wsi_platform) {
346 switch (wsi_platform) {
347 case (WSI_PLATFORM_AUTO):
348 return "auto";
349#if defined(VK_USE_PLATFORM_WIN32_KHR)
350 case (WSI_PLATFORM_WIN32):
351 return "win32";
352#endif
353#if defined(VK_USE_PLATFORM_METAL_EXT)
354 case (WSI_PLATFORM_METAL):
355 return "metal";
356#endif
357#if defined(VK_USE_PLATFORM_ANDROID_KHR)
358 case (WSI_PLATFORM_ANDROID):
359 return "android";
360#endif
361#if defined(VK_USE_PLATFORM_SCREEN_QNX)
362 case (WSI_PLATFORM_QNX):
363 return "qnx";
364#endif
365#if defined(VK_USE_PLATFORM_XCB_KHR)
366 case (WSI_PLATFORM_XCB):
367 return "xcb";
368#endif
369#if defined(VK_USE_PLATFORM_XLIB_KHR)
370 case (WSI_PLATFORM_XLIB):
371 return "xlib";
372#endif
373#if defined(VK_USE_PLATFORM_WAYLAND_KHR)
374 case (WSI_PLATFORM_WAYLAND):
375 return "wayland";
376#endif
377#if defined(VK_USE_PLATFORM_DIRECTFB_EXT)
378 case (WSI_PLATFORM_DIRECTFB):
379 return "directfb";
380#endif
381#if defined(VK_USE_PLATFORM_DISPLAY_KHR)
382 case (WSI_PLATFORM_DISPLAY):
383 return "display";
384#endif
385 default:
386 return "unknown";
387 }
388};
389
390typedef struct {
391 VkFence fence;

Callers 1

demo_init_vkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected