blob: 3406da10bbe10ed4ca7e8e0fb52ad972e5159e31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef DEVICE_CONTEXT_HH_
#define DEVICE_CONTEXT_HH_
#include <memory>
#include <unordered_map>
#include <vulkan/utility/vk_dispatch_table.h>
#include <vulkan/vk_layer.h>
#include <vulkan/vulkan.hpp>
#include "context.hh"
#include "instance_context.hh"
namespace low_latency {
class QueueContext;
struct DeviceContext final : public Context {
InstanceContext& instance;
const VkDevice device;
const VkuDeviceDispatchTable vtable;
// Do we need to use this unless we wrap dispatchable objects?
const PFN_vkSetDeviceLoaderData sdld;
std::unordered_map<VkQueue, std::shared_ptr<QueueContext>> queues;
public:
DeviceContext(InstanceContext& parent_instance, const VkDevice& device,
const PFN_vkSetDeviceLoaderData& sdld,
VkuDeviceDispatchTable&& vtable);
virtual ~DeviceContext();
};
}; // namespace low_latency
#endif
|