2018-09-10 13:21:02 +10:00
|
|
|
#pragma once
|
|
|
|
|
2019-01-05 23:30:52 +11:00
|
|
|
#include <cruft/vk/vk.hpp>
|
|
|
|
#include <cruft/vk/icd/vtable.hpp>
|
2018-09-10 13:21:02 +10:00
|
|
|
|
|
|
|
#include <cruft/util/library.hpp>
|
|
|
|
|
|
|
|
#include <string>
|
2018-12-05 19:12:03 +11:00
|
|
|
#include <filesystem>
|
2018-09-10 13:21:02 +10:00
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
namespace cruft::vk::icd {
|
|
|
|
struct icd_t {
|
|
|
|
std::string file_format_version;
|
|
|
|
struct {
|
2018-12-05 19:12:03 +11:00
|
|
|
std::filesystem::path library_path;
|
2018-09-10 13:21:02 +10:00
|
|
|
std::string api_version;
|
|
|
|
} icd;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<icd_t>
|
|
|
|
enumerate (void);
|
|
|
|
|
|
|
|
|
|
|
|
class vendor {
|
|
|
|
public:
|
|
|
|
vendor (icd_t const&);
|
|
|
|
vendor (::cruft::library &&);
|
|
|
|
|
|
|
|
private:
|
|
|
|
::cruft::library m_library;
|
|
|
|
|
|
|
|
public:
|
2019-01-05 23:30:52 +11:00
|
|
|
global_table vtable;
|
|
|
|
|
2018-09-10 13:21:02 +10:00
|
|
|
using get_proc_t = void* (*)(VkInstance, char const*);
|
|
|
|
get_proc_t const m_get_proc;
|
|
|
|
};
|
|
|
|
}
|