#include #include namespace lt::renderer { [[nodiscard]] /* static */ auto IMessenger::create( API target_api, IInstance *instance, ecs::Entity entity ) -> Scope { switch (target_api) { case API::Vulkan: return create_scope(instance, std::move(entity)); case API::Metal: case API::DirectX: throw std::runtime_error { "Invalid API" }; } } } // namespace lt::renderer