#include #include #ifdef LIGHT_PLATFORM_WINDOWS #include #include #endif #include namespace Light { Ref Framebuffer::Create( const FramebufferSpecification &specification, Ref sharedContext ) { switch (GraphicsContext::GetGraphicsAPI()) { case GraphicsAPI::OpenGL: return CreateRef(specification); case GraphicsAPI::DirectX: LT_WIN(return CreateRef( specification, std::static_pointer_cast(sharedContext) );) default: ASSERT( false, "Invalid/unsupported 'GraphicsAPI' {}", static_cast(GraphicsContext::GetGraphicsAPI()) ); return nullptr; } } } // namespace Light