| 86 | } |
| 87 | |
| 88 | void ProgramManager::DestroyForVulkan(ref_ptr<dp::GraphicsContext> context) |
| 89 | { |
| 90 | ref_ptr<dp::vulkan::VulkanBaseContext> vulkanContext = context; |
| 91 | vulkanContext->ResetPipelineCache(); |
| 92 | |
| 93 | ASSERT(dynamic_cast<vulkan::VulkanProgramParamsSetter *>(m_paramsSetter.get()) != nullptr, ()); |
| 94 | static_cast<vulkan::VulkanProgramParamsSetter *>(m_paramsSetter.get())->Destroy(vulkanContext); |
| 95 | |
| 96 | ASSERT(dynamic_cast<vulkan::VulkanProgramPool *>(m_pool.get()) != nullptr, ()); |
| 97 | static_cast<vulkan::VulkanProgramPool *>(m_pool.get())->Destroy(vulkanContext); |
| 98 | } |
| 99 | |
| 100 | ref_ptr<dp::GpuProgram> ProgramManager::GetProgram(Program program) |
| 101 | { |
nothing calls this directly
no test coverage detected