vk_instance: Make DynamicLoader static

* That way we don't construct/destroy it all the time
This commit is contained in:
GPUCode
2022-11-12 21:36:25 +02:00
parent ddfae0025c
commit 68a3217d1e
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@
namespace Vulkan {
vk::DynamicLoader Instance::dl;
vk::Format ToVkFormat(VideoCore::PixelFormat format) {
switch (format) {
case VideoCore::PixelFormat::RGBA8:

View File

@ -144,7 +144,7 @@ private:
void CreateAllocator();
private:
vk::DynamicLoader dl;
static vk::DynamicLoader dl;
vk::Device device;
vk::PhysicalDevice physical_device;
vk::Instance instance;