diff --git a/Sources/Backends/Metal/MetalDevice.m b/Sources/Backends/Metal/MetalDevice.m index 732f6ac..cc822fb 100644 --- a/Sources/Backends/Metal/MetalDevice.m +++ b/Sources/Backends/Metal/MetalDevice.m @@ -59,8 +59,7 @@ PulseDevice MetalCreateDevice(PulseBackend backend, PulseDevice* forbiden_device MetalDevice* metal_device = (MetalDevice*)calloc(1, sizeof(MetalDevice)); PULSE_CHECK_ALLOCATION_RETVAL(metal_device, PULSE_NULL_HANDLE); -//#ifdef PULSE_PLAT_MACOS -#if 0 +#ifdef PULSE_PLAT_MACOS uint64_t best = 0; NSArray>* devices = MTLCopyAllDevices(); for(id candidate in devices) @@ -77,8 +76,7 @@ PulseDevice MetalCreateDevice(PulseBackend backend, PulseDevice* forbiden_device #endif if(!metal_device->device) { - //#ifdef PULSE_PLAT_MACOS - #if 0 + #ifdef PULSE_PLAT_MACOS if(PULSE_IS_BACKEND_HIGH_LEVEL_DEBUG(backend)) PulseLogWarning(backend, "(Metal) failed to select device, falling back on default device"); #endif diff --git a/xmake.lua b/xmake.lua index 2cfc834..749821e 100644 --- a/xmake.lua +++ b/xmake.lua @@ -18,6 +18,7 @@ local backends = { option = "metal", default = is_plat("macosx", "iphoneos"), custom = function() + add_frameworks("Metal") add_files("Sources/Backends/Metal/**.m") end },