From 77e2be172718878b38999efc247ce7571435fcc8 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Tue, 10 Feb 2026 10:49:17 +1100 Subject: cleanup, wip --- src/device_context.hh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/device_context.hh (limited to 'src/device_context.hh') diff --git a/src/device_context.hh b/src/device_context.hh new file mode 100644 index 0000000..a936d6d --- /dev/null +++ b/src/device_context.hh @@ -0,0 +1,35 @@ +#ifndef DEVICE_CONTEXT_HH_ +#define DEVICE_CONTEXT_HH_ + +#include +#include + +#include +#include + +#include "instance_context.hh" + +namespace low_latency { + +class QueueContext; + +struct DeviceContext { + InstanceContext& instance; + + const VkDevice device; + const VkuDeviceDispatchTable vtable; + + std::unordered_map> queue_contexts; + + public: + DeviceContext(InstanceContext& parent_instance, const VkDevice& device, + VkuDeviceDispatchTable&& vtable); + DeviceContext(const DeviceContext&) = delete; + DeviceContext(DeviceContext&&) = delete; + DeviceContext operator==(const DeviceContext&) = delete; + DeviceContext operator==(DeviceContext&&) = delete; +}; + +}; // namespace low_latency + +#endif \ No newline at end of file -- cgit v1.2.3