// Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include #include #include #include #include #include // Because some idiot includes Windows.h #if defined(ERROR) # undef ERROR #endif namespace anki { Error GrManagerImpl::initSurface(const GrManagerInitInfo& init) { if(!SDL_Vulkan_CreateSurface(static_cast(init.m_window)->m_window, m_instance, &m_surface)) { ANKI_VK_LOGE("SDL_Vulkan_CreateSurface() failed: %s", SDL_GetError()); return Error::FUNCTION_FAILED; } return Error::NONE; } } // end namespace anki