42 lines
796 B
C++
42 lines
796 B
C++
#pragma once
|
|
|
|
#include <cruft/vk/vk.hpp>
|
|
#include <cruft/vk/icd/vtable.hpp>
|
|
|
|
#include <cruft/util/library.hpp>
|
|
|
|
#include <string>
|
|
#include <filesystem>
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
namespace cruft::vk::icd {
|
|
struct icd_t {
|
|
std::string file_format_version;
|
|
struct {
|
|
std::filesystem::path library_path;
|
|
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:
|
|
global_table vtable;
|
|
|
|
using get_proc_t = void* (*)(VkInstance, char const*);
|
|
get_proc_t const m_get_proc;
|
|
};
|
|
}
|