blob: 90aaf2ad6f560b75ca109d910a824fb20605cc55 (
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
|
#pragma once
#include <deimos/core/id_name.h>
#include <deimos/core/status.h>
namespace deimos
{
class ApiRegistry;
class Allocator;
struct OsWindow;
class IVulkanBackend
{
public:
};
class VulkanBackendApi
{
public:
VulkanBackendApi() = default;
deimos_NO_COPY_MOVE(VulkanBackendApi);
virtual ~VulkanBackendApi() = default;
static constexpr IdName kApiName{"deimos::VulkanBackendApi"};
virtual StatusOr<gsl::owner<IVulkanBackend*>> CreateBackend(Allocator*, OsWindow*) = 0;
};
void RegisterVulkanBackendApi(ApiRegistry*);
} // namespace deimos
|