aboutsummaryrefslogtreecommitdiff
path: root/src/physical_device_context.hh
blob: 35809ff81fb0717ce80813057bd976615552e6eb (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
#ifndef PHYSICAL_DEVICE_CONTEXT_HH_
#define PHYSICAL_DEVICE_CONTEXT_HH_

#include "instance_context.hh"

#include <vulkan/vulkan.hpp>

#include "context.hh"

namespace low_latency {

class PhysicalDeviceContext final : public Context {
  public:
    InstanceContext& instance;

    const VkPhysicalDevice physical_device;
    
    const std::unique_ptr<VkPhysicalDeviceProperties> properties;
    
    using queue_properties_t = std::vector<VkQueueFamilyProperties2>;
    const std::unique_ptr<queue_properties_t> queue_properties;

  public:
    PhysicalDeviceContext(InstanceContext& instance_context,
                          const VkPhysicalDevice& physical_device);
    virtual ~PhysicalDeviceContext();
};

} // namespace low_latency

#endif