25#ifdef VISUTWIN_HAS_METAL
26 return std::make_unique<MetalGraphicsDevice>(options);
28 spdlog::error(
"Metal backend not available on this platform");
32#ifdef VISUTWIN_HAS_VULKAN
33 return std::make_unique<VulkanGraphicsDevice>(options);
35 spdlog::error(
"Vulkan backend not available on this platform");
39 spdlog::error(
"Unknown backend: {}",
static_cast<int>(options.
backend));