vk_instance: Make DynamicLoader static
* That way we don't construct/destroy it all the time
This commit is contained in:
@ -13,6 +13,8 @@
|
||||
|
||||
namespace Vulkan {
|
||||
|
||||
vk::DynamicLoader Instance::dl;
|
||||
|
||||
vk::Format ToVkFormat(VideoCore::PixelFormat format) {
|
||||
switch (format) {
|
||||
case VideoCore::PixelFormat::RGBA8:
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user