Skip to content

VKD3D-Proton MacOS v4.9

Choose a tag to compare

@github-actions github-actions released this 02 Nov 01:10
· 8788 commits to main since this release

VKD3D-Proton macOS 4.9 is built from main (2f7120c). It brings DLSS on MetalFX and MetalFX upscaling of the swap chain to the VKD3D-Proton lane, with its own NGX core and NVAPI.

What's new

DLSS through MetalFX (Direct3D 12)

  • DLSS Super Resolution runs on MetalFX's temporal scaler, and DLSS Ray Reconstruction on its denoised scaler (macOS 26 or later).
  • It works for games that call NGX directly and for games that go through Streamline (The Witcher 3, God of War Ragnarök).
  • The lane ships its own NGX core and NVAPI (nvngx.dll, nvapi64.dll, ARM64X, built from ngx/). They import only Windows' DLLs and DXGI.
    • NVAPI reports the NVIDIA GPU that DXGI shows (its adapters, LUIDs and description), so Streamline's GPU check matches.
    • Both load only in programs whose DXVK configuration shows an NVIDIA GPU (dxgi.customVendorId = 10de).
  • VKD3D-Proton's command lists record the scales through their own private interface, ID3D12GraphicsCommandListMetalFX.
  • DXGI (DXVK 2.7.1) sets up DLSS for those programs: it adds the NVIDIA driver's NGXCore registry values and trusts the certificate NGX checks its core against.

MetalFX upscaling at present

  • With d3d12.metalSpatialUpscale = True (or d3d11.metalSpatialUpscale) in vkd3d.conf, the swap chain keeps the back buffers' size. MoltenVK then upscales it to the display with MetalFX's spatial scaler instead of stretching it. vkd3d.conf is named by VKD3D_CONFIG_FILE, otherwise it's the working directory's.
  • The output is the layer's size on screen, including in native macOS fullscreen at an emulated display mode.
  • Wine (MetalSharp Wine 0108–0110, 0113) launches the game at the display divided by the factor. It also stops reporting these smaller swap chains as suboptimal, which had made VKD3D-Proton recreate them every frame.

MoltenVK (mvk_metalfx.h)

  • MetalFX temporal and denoised scales ride on vkCmdPipelineBarrier2 (VkMetalFXScaleInfoMVK). The swap chain upscaling is requested with VkSwapchainCreateInfoKHR (VkSwapchainMetalFXSpatialCreateInfoMVK).
  • On 64-bit, Wine's Vulkan layer hands both structures to the driver as they are, so no new Vulkan entry points are needed.
  • Support is announced in driverInfo: metalfx, and metalfx-denoised on macOS 26 or later.

Use it with

  • MetalSharp Wine main cbc408d or later. It sets up DLSS games, the launch size and the lane's DLL loading.
  • MetalSharp with metalsharp/MetalSharp#755, which writes the MetalFX lines into vkd3d.conf and dxvk.conf.

Not yet

  • DLSS Frame Generation.
  • Motion vectors at the output resolution (games that render them that way get a warning).
  • 32-bit programs: Wine's 32-bit Vulkan thunks drop the MetalFX structures.
  • Direct3D 11 games on this lane: they launch at the MetalFX size, but the lane's DXVK 2.7.1 doesn't upscale at present. They get MetalFX on the DXVK lane (DXVK-MacOS v3.1.1-macos.2).

Packages

Built from 2f7120c. Each package holds its files, their licenses and SHA256SUMS.

  • vkd3d-proton-v4.9-x86_64: VKD3D-Proton's d3d12.dll and d3d12core.dll, with DXVK's dxgi.dll, d3d11.dll and d3d10core.dll, for x86_64 Windows programs (x86_64-windows). Stage them together.
  • vkd3d-proton-v4.9-arm64: for an arm64 Wine that runs x86_64 programs with FEX (MetalSharp Wine): VKD3D-Proton's d3d12.dll and d3d12core.dll as ARM64X (aarch64-windows, loaded by x86_64 programs as ARM64EC), with DXVK's x86_64 dxgi.dll, d3d11.dll and d3d10core.dll (x86_64-windows), and the lane's own NGX core and NVAPI (nvngx.dll, nvapi64.dll, ARM64X), which run DLSS Super Resolution and Ray Reconstruction on MetalFX.
  • moltenvk-v4.9-universal: the universal (arm64 + x86_64), ad-hoc signed libMoltenVK.dylib and MoltenVK_icd.json both lanes run on, with Apple's Metal Shader Converter library (libmetalirconverter.dylib, unmodified, Apple-signed), which MoltenVK uses to convert DXIL compute, vertex and pixel shaders for VKD3D-Proton (METALSHARP_MSC=0 turns it off). It runs MetalFX's scalers for VKD3D-Proton's and DXVK's DLSS and swap chain upscaling (mvk_metalfx.h).