KhronosGroup / MoltenVK

MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.
Apache License 2.0
4.74k stars 414 forks source link

Error using DXVK 1.2.1+Reshade 4.3.0 #627

Open oscarbg opened 5 years ago

oscarbg commented 5 years ago

Hi, got to test minimal sample using new Reshade 4.3.0.. Using DXVK 1.2.1 & Reshade 4.3.0 with d3d11-triangle.exe which tested works on Linux.. also check DXVK 1.2.1+d3d11-triangle works on MacOS with latest Metal..

interesting log seems to be:

[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 1):
Link failed: fragment shader is reading the render_target_array_index but the vertex shader does not write it.
terminate called after throwing an instance of 'dxvk::DxvkError'

EDIT: maybe MoltenVK/SPIRV-Cross can add setting render_target_array_index=0 in vertex shader to fix such cases? also for correct test use this settings(with these Reshade is working on Linux): https://github.com/doitsujin/dxvk/issues/1057#issuecomment-492463988

d3d11-triangle_d3d11.log d3d11-triangle_dxgi.log Reshade log: dxgi.log

Upload project to reproduce if wanted with all include (d3dcompiler_47.dll, reshade DXGI.dll)..

reshade.zip

Rastafabisch commented 3 years ago

According to the linked thread to my understanding it has apparently been a DXVK issue. Might be worth marking as NOT VALID?