Add Vulkan support on Switch

This commit is contained in:
Wojtek Figat
2021-03-15 15:47:54 +01:00
parent c930d32b2b
commit 3fb0b56c10
8 changed files with 60 additions and 5 deletions

View File

@@ -171,6 +171,14 @@ bool GraphicsService::Init()
device = CreateGPUDeviceVulkan();
#endif
#elif PLATFORM_SWITCH
// Switch
#if GRAPHICS_API_VULKAN
if (!device)
device = CreateGPUDeviceVulkan();
#endif
#elif !defined(GRAPHICS_API_NULL)
#error "Platform does not support GPU devices."