Difference between revisions of "Vkd3d"
|Line 48:||Line 48:|
= See also =
= See also =
Revision as of 09:06, 5 July 2019
Vkd3d is a 3D graphics library built on top of Vulkan. It has an API very similar, but not identical, to Direct3D 12. Wine uses vkd3d libraries for its implementation of Direct3D 12.
Getting the vkd3d source
To grab the source code, just enter the following command:
git clone git://source.winehq.org/git/vkd3d.git/
Enter the following commands:
./autogen.sh ./configure make
See also the README file.
In order to build 32-bit libraries:
../vkd3d/configure --build=i686-pc-linux-gnu "CPPFLAGS=-m32" "LDFLAGS=-m32"
Building Wine with Direct3D 12 support
Wine uses pkg-config to find vkd3d libraries. If vkd3d libraries are installed system-wide, the Wine configure script should find the vkd3d libraries automatically. You can also use PKG_CONFIG_PATH, VKD3D_CFLAGS or VKD3D_LIBS to override pkg-config search path, C compiler flags for libvkd3d, or linker flags for libvkd3d, e.g.
Vkd3d provides VKD3D_DEBUG and VKD3D_SHADER_DEBUG environment variables to control debug log messages. The debug variables can be set to one of the following debug log levels: none, err, fixme, warn, trace.
See the README file for description of all debug environment variables.
Vulkan validation layers
Enable validation layers in a standard way:
You may also want to enable Vulkan debug extensions in vkd3d: