blob: d12766fc2bd5cb52a7d491c3e91f54d844096933 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "instance_context.hh"
#include <cassert>
#include <utility>
namespace low_latency {
InstanceContext::InstanceContext(const VkInstance& instance,
VkuInstanceDispatchTable&& vtable)
: instance(instance), vtable(std::move(vtable)) {}
InstanceContext::~InstanceContext() {
// Similar to devices, we should own the only shared ptr at this point so
// they destruct now.
for (const auto& [device, device_context] : this->phys_devices) {
assert(device_context.unique());
}
}
} // namespace low_latency
|