protonscr

Compiling DXVK 1.0

dxvkclosed
doitsujin/dxvk#941 · opened 2019-02-28 by adv-sw · updated 2019-03-01 · 4 comments · github
Aadv-sw 2019-02-28 github

Compiling on Windows, though these issues aren't Windows specific.

Can have Visual Studio proj/solution when it works, if you'd like.

DXVK Issues

  1. The following files are missing

#include <dxgi_presenter_frag.h>
#include <dxgi_presenter_vert.h>

Referenced in d3d11_swapchain.cpp

Production stop. Can't compile with these files missing.

2.VkPhysicalDeviceDepthClipEnableFeaturesEXT

Not defined in latest vulkan SDK. I've commented out in my build to get it compiling.

Version 1.0 and latest tree.

Ddoitsujin maintainer 2019-02-28 github
  1. The following files are missing

#include <dxgi_presenter_frag.h>
#include <dxgi_presenter_vert.h>

They are not missing, they are generated from GLSL shaders at build time.

VkPhysicalDeviceDepthClipEnableFeaturesEXT

This is defined in the Vulkan headers that ship with DXVK.

Do note that I do not and will not support building on Visual Studio.

Mmisyltoad 2019-02-28 github

Visual Studio builds perfectly out of the box anyway.

You don't need to change anything to get it to build -- if its broke its because you broke it.

Make sure you have glslangValidator in your path and run
meson --backend vs2017 build --buildtype release
to generate the project files

Aadv-sw 2019-03-01 github

Hey guys - wasn't aware you had a build system that could generate vstudio projects so had started putting my own together. Cheers Joshua for that, resolves my build issues.

Compiled on windows using visual studio (thank you).

One issue :

On Windows its hard to get an app to pick up vulkan replacement DLLs as system wants to pick up its own. I modified project files to generate vk_d3d11.dll vk_d3d11.lib etc.

Obv requires app to be built against them but as that's only reason to do this on windows, makes sense. To me, anyhow.

Aadv-sw 2019-03-01 github

Have dxvk with the modification I've suggested above running on my test system, building against standard dxsdk sample code & so far so good :)

DLLs