aboutsummaryrefslogtreecommitdiff
path: root/src/strategies/device_strategy.hh
blob: 0fd7acdb8dc0ab49d60bb88f5801309fd7ab858d (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
#ifndef STRATEGIES_DEVICE_STRATEGY_HH_
#define STRATEGIES_DEVICE_STRATEGY_HH_

#include <vulkan/vulkan.h>
#include <vulkan/vulkan_core.h>

namespace low_latency {

class DeviceContext;

class DeviceStrategy {
  protected:
    DeviceContext& device;

  public:
    DeviceStrategy(DeviceContext& device);
    virtual ~DeviceStrategy();

  public:
    virtual void
    notify_create_swapchain(const VkSwapchainKHR& swapchain,
                            const VkSwapchainCreateInfoKHR& info) = 0;
    virtual void notify_destroy_swapchain(const VkSwapchainKHR& swapchain) = 0;
};

} // namespace low_latency

#endif