| 545 | } |
| 546 | |
| 547 | uint32_t VulkanBaseContext::RegisterHandler(HandlerType handlerType, ContextHandler && handler) |
| 548 | { |
| 549 | static uint32_t counter = 0; |
| 550 | CHECK_LESS(counter, std::numeric_limits<uint32_t>::max(), ()); |
| 551 | ASSERT(handler != nullptr, ()); |
| 552 | uint32_t const id = ++counter; |
| 553 | m_handlers[static_cast<uint32_t>(handlerType)].emplace_back(std::make_pair(id, std::move(handler))); |
| 554 | return id; |
| 555 | } |
| 556 | |
| 557 | void VulkanBaseContext::UnregisterHandler(uint32_t id) |
| 558 | { |
no test coverage detected