| 41 | } |
| 42 | |
| 43 | void ProgramManager::Destroy(ref_ptr<dp::GraphicsContext> context) |
| 44 | { |
| 45 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 46 | auto const apiVersion = context->GetApiVersion(); |
| 47 | if (apiVersion == dp::ApiVersion::Metal) |
| 48 | { |
| 49 | #if defined(OMIM_METAL_AVAILABLE) |
| 50 | DestroyForMetal(context); |
| 51 | #endif |
| 52 | } |
| 53 | else if (apiVersion == dp::ApiVersion::Vulkan) |
| 54 | { |
| 55 | DestroyForVulkan(context); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void ProgramManager::InitForOpenGL(ref_ptr<dp::GraphicsContext> context) |
| 60 | { |
no test coverage detected