descriptionD3D12 to Vulkan translation library
homepage URLhttps://source.winehq.org/git/vkd3d.git/
repository URLgit://source.winehq.org/git/vkd3d.git
ownerzfigura@codeweavers.com
last changeThu, 16 May 2024 19:49:50 +0000 (16 21:49 +0200)
last refreshFri, 17 May 2024 00:43:24 +0000 (17 02:43 +0200)
content tags
add:
README
=============================
The vkd3d 3D Graphics Library
=============================

Vkd3d is a 3D graphics library built on top of Vulkan. It has an API very
similar, but not identical, to Direct3D 12.

==============
Building vkd3d
==============

Vkd3d depends on SPIRV-Headers and Vulkan-Headers (>= 1.3.228).

Vkd3d generates some of its headers from IDL files. If you are using the
release tarballs, then these headers are pre-generated and are included. If
you are building from git, then they will be generated at build-time using
widl. By default, vkd3d will use the widl found in `PATH'. If widl is not
available or is not recent (>= 3.21), then you can build Wine with `make
tools/widl/widl' to avoid building all of Wine. You can then point vkd3d's
configure at that widl binary with `WIDL="/path/to/widl"'.

For release builds, you may want to define NDEBUG. If you do not need debug log
messages, you may also consider VKD3D_NO_TRACE_MESSAGES and
VKD3D_NO_DEBUG_MESSAGES. For example, you can pass `CPPFLAGS="-DNDEBUG
-DVKD3D_NO_TRACE_MESSAGES"' to configure.

===========
Using vkd3d
===========

Vkd3d can be used by projects that target Direct3D 12 as a drop-in replacement
at build-time with some modest source modifications.

If vkd3d is available when building Wine, then Wine will use it to support
Direct3D 12 applications.

=====================
Environment variables
=====================

Most of the environment variables used by vkd3d are for debugging purposes. The
environment variables are not considered a part of API and might be changed or
removed in the future versions of vkd3d.

Some of debug variables are lists of elements. Elements must be separated by
commas or semicolons.

 * NO_COLOR - this is an alias of NO_COLOUR.

 * NO_COLOUR - when set, vkd3d-compiler and vkd3d-dxbc will default to
   monochrome output, even when the output supports colour.

 * VKD3D_CONFIG - a list of options that change the behavior of libvkd3d.
    * virtual_heaps - Create descriptors for each D3D12 root signature
      descriptor range instead of entire descriptor heaps. Useful when push
      constant or bound descriptor limits are exceeded.
    * vk_debug - enables Vulkan debug extensions.

 * VKD3D_DEBUG - controls the debug level for log messages produced by
   libvkd3d. Accepts the following values: none, err, fixme, warn, trace.

 * VKD3D_VULKAN_DEVICE - a zero-based device index. Use to force the selected
   Vulkan device.

 * VKD3D_DISABLE_EXTENSIONS - a list of Vulkan extensions that libvkd3d should
   not use even if available.

 * VKD3D_SHADER_CONFIG - a list of options that change the behavior of
   libvkd3d-shader.
    * force_validation - Enable (additional) validation of libvkd3d-shader's
      internal representation of shaders.

 * VKD3D_SHADER_DEBUG - controls the debug level for log messages produced by
   libvkd3d-shader. See VKD3D_DEBUG for accepted values.

 * VKD3D_SHADER_DUMP_PATH - path where shader bytecode is dumped.

 * VKD3D_TEST_DEBUG - enables additional debug messages in tests. Set to 0, 1
   or 2.

 * VKD3D_TEST_FILTER - a filter string. Only the tests whose names matches the
   filter string will be run, e.g. VKD3D_TEST_FILTER=clear_render_target.
   Useful for debugging or developing new tests.

 * VKD3D_TEST_PLATFORM - can be set to "wine", "windows" or "other". The test
   platform controls the behavior of todo(), todo_if(), bug_if() and broken()
   conditions in tests.

 * VKD3D_TEST_BUG - set to 0 to disable bug_if() conditions in tests.

If the configuration defines 'DXCOMPILER_LIBS=-L/path/to/dxcompiler', Shader
Runner attempts to load libdxcompiler.so or dxcompiler.dll to compile test
shaders in Shader Model 6. LD_LIBRARY_PATH (linux), WINEPATH (wine) or PATH
(native windows) should include the location of dxcompiler if SM 6 shader
tests are desired. If dxcompiler is not found, Shader Runner will compile the
test shaders only in earlier shader models. The DXC source does not contain
code for adding DXBC checksums, so the official release should be installed
from:
https://github.com/microsoft/DirectXShaderCompiler/releases

================
Developing vkd3d
================

Development of vkd3d happens on the Wine GitLab instance
(https://gitlab.winehq.org/wine/vkd3d/). Contributors are encouraged
to submit their patches using the merge request tool.

Each merge request is automatically tested with the GitLab CI
system. See gitlab/README in the Git tree for more details.
shortlog
5 hours ago Nikolay Sivovvkd3d-shader/fx: Use correct type name when reusing... master
5 hours ago Nikolay Sivovvkd3d-shader/fx: Implement writing shared buffers.
5 hours ago Henri Verbeetvkd3d-shader/dxil: Parse the shader into a vsir program...
5 hours ago Henri Verbeetvkd3d-shader/tpf: Parse the shader into a vsir program...
5 hours ago Henri Verbeetvkd3d-shader/d3dbc: Parse the shader into a vsir progra...
5 hours ago Henri Verbeetvkd3d-shader/ir: Do not store the vkd3d-shader configur...
5 hours ago Henri Verbeetvkd3d-shader/ir: Pass an initialised vsir_program struc...
5 hours ago Henri Verbeetvkd3d-shader/ir: Use a separate allocation for the...
30 hours ago Francisco Casasvkd3d-shader/hlsl: Also lower matrix swizzles and index...
30 hours ago Francisco Casastests: Test complex array size expression.
30 hours ago Francisco Casasvkd3d-shader/hlsl: Run more constant passes on static...
30 hours ago Francisco Casasvkd3d-shader/hlsl: Run constant passes in a separate...
30 hours ago Francisco Casastests: Test default values for constant buffer variables.
30 hours ago Francisco Casastests: Test default values for uniform variables.
2 days ago Conor McCarthyvkd3d-shader/dxil: Handle SV_ClipDistance and SV_CullDi...
2 days ago Conor McCarthytests/hlsl: Add a test for SV_ClipDistance.
...
tags
2 months ago vkd3d-1.11 Release 1.11
5 months ago vkd3d-1.10 Release 1.10
7 months ago vkd3d-1.9 Release 1.9
10 months ago vkd3d-1.8 Release 1.8
12 months ago vkd3d-1.7.1 Release 1.7.1
13 months ago vkd3d-1.7 Release 1.7
17 months ago vkd3d-1.6 Release 1.6
19 months ago vkd3d-1.5 Release 1.5
22 months ago vkd3d-1.4 Release 1.4
2 years ago vkd3d-1.3 Release 1.3
3 years ago vkd3d-1.2 Release 1.2
5 years ago vkd3d-1.1 Release 1.1
5 years ago vkd3d-1.0 Release 1.0
7 years ago vkd3d-0.0.1 Release 0.0.1.
heads
5 hours ago master
12 months ago vkd3d-1.7.x
forks
Cached version (2194s old)
vkd3d/zf.git Zebediah Figura's local tree zfigura@codeweavers.com 2 years ago