Repository navigation
VKD3D-Proton macOS 5.0
VKD3D-Proton macOS 5.0 is built from main (54537b6, #12). It brings DLSS Frame Generation on MetalFX, Metal pipelines compiled on background threads, the fixes reported in #11, and the roadmap's command-stream work.
Fixes for #11
- Packed geometry shader inputs (Forza Horizon 3's "duplicate member in1", Crimson Desert's packed geometry payload): SPIRV-Cross names geometry-as-mesh payload members per location and component, and reads the right component.
- GetAttributeAtVertex / PerVertexKHR (Crimson Desert): dxil-spirv's 8-bit vertex index fix from upstream (
patches/dxil-spirv/0001). SPIRV-Cross reads per-vertex inputs through Metal'svertex_valuewhere a one-triangle self-test shows it works, and falls back to an interpolated approximation with a warning where it doesn't (macOS 27.2 on M4). - Stall report: with
METALSHARP_TRACE=sync, after 5 s without a Present, VKD3D-Proton logs the fences being waited on.
Performance (tests/perf scenes, Apple M4)
- Constant buffer rows out of range read from a zero constant:
cbv_rows410 → 20 ms. - WriteBufferImmediate markers batched within a render pass:
draw_markers186 → 1.5 ms. - ALL_COMMANDS barriers between dispatches stay in the compute encoder:
alias_dispatches6.5 → 0.66 ms. - Counted ExecuteIndirect dispatches run from a compute indirect command buffer: 13.7 → 2.4 ms.
- One timestamp sample per pool per batch:
timestamps29 → 2.9 ms,queries29 → 1.8 ms. - The implicit pipeline cache is saved outside its lock. Before, the cache file doubled on every launch and never hit.
- Background pipeline compiling: MoltenVK compiles Metal pipelines on its own threads (
MVK_CONFIG_DEFERRED_PIPELINES, on unless0).
Correctness
- Timestamps resolved in the same command list that wrote them read their values. The resolve runs on the host, and timeline semaphores never go back.
- R32G32B32 typed buffer SRVs (
Buffer<float3>and the like) work without such Metal texel formats. dxil-spirv reads them as three single-component texels. - Metal Shader Converter bridge pipelines get their static samplers. Logic operations and conservative rasterization stay on SPIR-V.
- A SPIRV-Cross recompile-limit failure is fixed. It left a God of War Ragnarök compute shader unconverted ("D3D Device Crashed").
MetalFX and DLSS
- DLSS Frame Generation (NGX feature 11) on MetalFX's frame interpolator. This needs macOS 27 and the game's own
nvngx_dlssg.dll. NVAPI answers the DRS session and Reflex calls Streamline makes. - Ray Reconstruction and Frame Generation are offered only where the game ships their libraries.
- MetalFX temporal upscales take motion vectors at the output resolution (Hogwarts Legacy).
- MetalFX spatial upscaling of the swap chain is asked for when the back buffers are larger than the window too. Before, ELDEN RING stayed drawn in a corner of the screen.
VKD3D_METALFX_SPATIAL=1/0overridesvkd3d.conf.VKD3D_CONFIG_FILEmay be a Unix path.- The arm64 package ships
vkd3d.confanddxvk.conf, and the installer sets them up with the NGX core and NVAPI. This is for Wines other than MetalSharp's. nvngx.dllis signed with the Mullion NGX key, whose certificate the lane's DXGI trusts in the prefix.- MoltenVK's frame interpolator is built with the macOS 26 SDK and turned on at run time on macOS 27.
Tests
New D3D12 tests:
aliaschainexecuteindirect_dispatch_counttimestamps(including same-list resolves)static_sampler_lodtypedbuffer_rgb32(+_dxbc)view_kinds_dxil/_dxbcminmaxwave_first_helpers
Each change was checked with its own tests and scenes. The full suite was not rerun.
Known gaps
These are not covered in 5.0:
- Per-draw binding cost
- Predication
- Transform feedback
- DispatchRays
- Isolines
- Fence completion under heavy CPU load (about twice Mullion's)
Built from 54537b6. Each package holds its files, their licenses and SHA256SUMS.
- vkd3d-proton-v5.0-x86_64: VKD3D-Proton's
d3d12.dllandd3d12core.dll, with DXVK'sdxgi.dll,d3d11.dllandd3d10core.dll, for x86_64 Windows programs (x86_64-windows). Stage them together. - vkd3d-proton-v5.0-arm64: for an arm64 Wine that runs x86_64 programs with FEX (MetalSharp Wine): VKD3D-Proton's
d3d12.dllandd3d12core.dllas ARM64X (aarch64-windows, loaded by x86_64 programs as ARM64EC), with DXVK's x86_64dxgi.dll,d3d11.dllandd3d10core.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-v5.0-universal: the universal (arm64 + x86_64), ad-hoc signed
libMoltenVK.dylibandMoltenVK_icd.jsonboth 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=0turns it off). It runs MetalFX's scalers for VKD3D-Proton's and DXVK's DLSS and swap chain upscaling (mvk_metalfx.h).