aboutsummaryrefslogtreecommitdiff
path: root/src/queue_context.hh
blob: 49bfcdfb599cb8659a486dc6948a7d43a90b129e (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
39
#ifndef QUEUE_STATE_HH_
#define QUEUE_STATE_HH_

#include "timestamp_pool.hh"

#include <vulkan/utility/vk_dispatch_table.h>
#include <vulkan/vulkan.hpp>

#include <memory>

namespace low_latency {
  
class DeviceContext;

class QueueContext final {
  public:
    DeviceContext& device_context;

    const VkQueue queue;
    const std::uint32_t queue_family_index;

    VkSemaphore semaphore;
    VkCommandPool command_pool;

    std::unique_ptr<TimestampPool> timestamp_pool;

  public:
    QueueContext(DeviceContext& device_context, const VkQueue& queue,
                 const std::uint32_t& queue_family_index);
    QueueContext(const QueueContext&) = delete;
    QueueContext(QueueContext&&) = delete;
    QueueContext operator==(const QueueContext&) = delete;
    QueueContext operator==(QueueContext&&) = delete;
    ~QueueContext();
};

}; // namespace low_latency

#endif