| 72 | } |
| 73 | |
| 74 | void VulkanProgramParamsSetter::Destroy(ref_ptr<dp::vulkan::VulkanBaseContext> context) |
| 75 | { |
| 76 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 77 | for (auto & ub : m_uniformBuffers) |
| 78 | { |
| 79 | for (auto & b : ub) |
| 80 | { |
| 81 | m_objectManager->UnmapUnsafe(b.m_object); |
| 82 | m_objectManager->DestroyObject(b.m_object); |
| 83 | } |
| 84 | ub.clear(); |
| 85 | } |
| 86 | |
| 87 | context->UnregisterHandler(m_finishHandlerId); |
| 88 | context->UnregisterHandler(m_flushHandlerId); |
| 89 | context->UnregisterHandler(m_updateInflightFrameId); |
| 90 | } |
| 91 | |
| 92 | void VulkanProgramParamsSetter::Flush() |
| 93 | { |
nothing calls this directly
no test coverage detected