fix: device preference not getting loaded

This commit is contained in:
Samuliak 2025-01-12 13:08:30 +01:00
parent 0b15ad4157
commit 82c2d14828
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -477,7 +477,7 @@ private:
MetalPerformanceMonitor m_performanceMonitor; MetalPerformanceMonitor m_performanceMonitor;
// Metal objects // Metal objects
MTL::Device* m_device; MTL::Device* m_device = nullptr;
MTL::CommandQueue* m_commandQueue; MTL::CommandQueue* m_commandQueue;
// Feature support // Feature support

View file

@ -214,7 +214,7 @@ void CemuConfig::Load(XMLConfigParser& parser)
auto graphic = parser.get("Graphic"); auto graphic = parser.get("Graphic");
graphic_api = graphic.get("api", kOpenGL); graphic_api = graphic.get("api", kOpenGL);
graphic.get("vkDevice", vk_graphic_device_uuid); graphic.get("vkDevice", vk_graphic_device_uuid);
graphic.get("mtlDevice", mtl_graphic_device_uuid); mtl_graphic_device_uuid = graphic.get("mtlDevice", 0);
vsync = graphic.get("VSync", 0); vsync = graphic.get("VSync", 0);
gx2drawdone_sync = graphic.get("GX2DrawdoneSync", true); gx2drawdone_sync = graphic.get("GX2DrawdoneSync", true);
upscale_filter = graphic.get("UpscaleFilter", kBicubicHermiteFilter); upscale_filter = graphic.get("UpscaleFilter", kBicubicHermiteFilter);

View file

@ -464,9 +464,9 @@ struct CemuConfig
// graphics // graphics
ConfigValue<GraphicAPI> graphic_api{ kVulkan }; ConfigValue<GraphicAPI> graphic_api{ kVulkan };
std::array<uint8, 16> vk_graphic_device_uuid; std::array<uint8, 16> vk_graphic_device_uuid;
uint64 mtl_graphic_device_uuid{0}; uint64 mtl_graphic_device_uuid{ 0 };
ConfigValue<int> vsync{ 0 }; // 0 = off, 1+ = depending on render backend ConfigValue<int> vsync{ 0 }; // 0 = off, 1+ = depending on render backend
ConfigValue<bool> gx2drawdone_sync {true}; ConfigValue<bool> gx2drawdone_sync { true };
ConfigValue<bool> render_upside_down{ false }; ConfigValue<bool> render_upside_down{ false };
ConfigValue<bool> async_compile{ true }; ConfigValue<bool> async_compile{ true };