mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 22:41:18 +12:00
fix: device preference not getting loaded
This commit is contained in:
parent
0b15ad4157
commit
82c2d14828
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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 };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue