Vulkan: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Clarify that Source 1 only has DXVK, not native Vulkan, and added some notes regarding that)
Line 2: Line 2:
'''Vulkan''' is a low-overhead, cross-platform API, open standard for 3D graphics and computing developed by Khronos Group, a successor to [[OpenGL]].
'''Vulkan''' is a low-overhead, cross-platform API, open standard for 3D graphics and computing developed by Khronos Group, a successor to [[OpenGL]].


Most games will usually have Vulkan disabled by default for compatibility reasons (with older GPUs) or possibly to avoiding bugs or performance issues that sometime may happen even on high-end hardware, except in {{portalrtx|4}} which is enabled by default.
{{source|4}} exclusively uses Direct3D for rendering and does '''not''' support Vulkan. However, as of recent updates, some games include a built-in copy of DXVK, a library used to translate Direct3D calls to Vulkan. This is disabled by default, but can be enabled in supported games by passing <code>-vulkan</code> into the game's launch options.


Games that supports Vulkan:
{{source2|4}} has implemented a native Vulkan renderer, used by default on Linux; it can also be enabled on Windows by passing <code>-vulkan</code> into the game's launch options.
 
== DXVK notes ==
 
* On {{Windows|4}}, Direct3D is supported natively, so in most cases there is no reason to enable DXVK and doing so may do more harm than good. It should only be used as a last resort to work around graphics driver bugs.
** {{portal2|4}} in particular is known for having issues with [[projected texture]]s on various graphics drivers: AMD drivers will fail to render all shadows cast by them, while Nvidia drivers will rarely cause a static-like effect to appear on certain materials being hit by one. Enabling DXVK circumvents these issues.
** Using DXVK on Windows may break borderless window mode, causing it to behave identically to exclusive fullscreen. This "feature" appears to be a part of the graphics drivers themselves and not fixable by the game.
* On {{Linux|4}}, where Direct3D is not supported, the Source Engine defaults to using Valve's in-house library ToGL to translate Direct3D calls to OpenGL. Using DXVK on Linux is usually recommended if the game supports it, as ToGL is known for having somewhat poor performance and causing some graphical issues. <!--would be nice if someone who actually uses linux could improve this part-->
* On {{macOS|4}}, DXVK is not supported, due to Vulkan itself not being supported by Apple. Source Engine games on Mac include ToGL as their only rendering mode.
* In all games by Valve that support the <code>-gamepadui</code> launch argument, using it will also enable DXVK automatically, including on Windows. Use <code>-dx9</code> if you don't want this.
 
== Games that support Vulkan ==
 
=== {{source|4}} (DXVK) ===
*{{hl2|4}} (added since 2022 {{steamdeck|4}} update)
*{{hl2|4}} (added since 2022 {{steamdeck|4}} update)
*{{portal|4}} (same as HL2 case)
*{{portal|4}} (added since 2022 {{steamdeck|4}} update)
**{{portalrtx|4}} (enabled by default)
**{{portalrtx|4}} (Always used as part of the RTX Remix runtime; Source's copy of DXVK is also included, but attempting to enable it will break rendering.)
*{{l4d2|4}} (since the June 15, 2021 update)
*{{l4d2|4}} (since the June 15, 2021 update)
*{{portal2|4}}
*{{portal2|4}} (added in the February 2021 update)
*{{csgo|4}} (Linux only)
*{{csgo|4}} (Linux only)
*{{strata|4}} (Linux only, enabled by default)
=== {{source2|4}} (Native) ===
*{{cs2|4}}
*{{cs2|4}}
*{{dota2|4}}
*{{dota2|4}}
Line 16: Line 32:
*{{adj|4}}
*{{adj|4}}
*{{hla|4}} (since version 1.3, released in May 16, 2020)
*{{hla|4}} (since version 1.3, released in May 16, 2020)
{{note|Vulkan is enable by the launch option {{code|-vulkan}}, or by using {{code|-gamepadui}} in all {{hl2|2}} games and {{portal|2}}.}} 


==See also==
==See also==

Revision as of 22:14, 15 March 2024

English (en)Translate (Translate)

Vulkan is a low-overhead, cross-platform API, open standard for 3D graphics and computing developed by Khronos Group, a successor to OpenGL.

Source Source exclusively uses Direct3D for rendering and does not support Vulkan. However, as of recent updates, some games include a built-in copy of DXVK, a library used to translate Direct3D calls to Vulkan. This is disabled by default, but can be enabled in supported games by passing -vulkan into the game's launch options.

Source 2 Source 2 has implemented a native Vulkan renderer, used by default on Linux; it can also be enabled on Windows by passing -vulkan into the game's launch options.

DXVK notes

  • On Windows Windows, Direct3D is supported natively, so in most cases there is no reason to enable DXVK and doing so may do more harm than good. It should only be used as a last resort to work around graphics driver bugs.
    • Portal 2 Portal 2 in particular is known for having issues with projected textures on various graphics drivers: AMD drivers will fail to render all shadows cast by them, while Nvidia drivers will rarely cause a static-like effect to appear on certain materials being hit by one. Enabling DXVK circumvents these issues.
    • Using DXVK on Windows may break borderless window mode, causing it to behave identically to exclusive fullscreen. This "feature" appears to be a part of the graphics drivers themselves and not fixable by the game.
  • On Linux Linux, where Direct3D is not supported, the Source Engine defaults to using Valve's in-house library ToGL to translate Direct3D calls to OpenGL. Using DXVK on Linux is usually recommended if the game supports it, as ToGL is known for having somewhat poor performance and causing some graphical issues.
  • On macOS macOS, DXVK is not supported, due to Vulkan itself not being supported by Apple. Source Engine games on Mac include ToGL as their only rendering mode.
  • In all games by Valve that support the -gamepadui launch argument, using it will also enable DXVK automatically, including on Windows. Use -dx9 if you don't want this.

Games that support Vulkan

Source Source (DXVK)

Source 2 Source 2 (Native)

See also

External links