Difference between revisions of "Vulkan"

From ArchWiki
Jump to navigation Jump to search
(Mention the primus_vk being an official package now.)
(Added command to list installed implementations)
Line 27: Line 27:
  
 
For Vulkan application development, [[install]] {{pkg|vulkan-headers}}, and optionally {{pkg|vulkan-validation-layers}} and {{pkg|vulkan-tools}} (you can find the vulkaninfo tool in here).
 
For Vulkan application development, [[install]] {{pkg|vulkan-headers}}, and optionally {{pkg|vulkan-validation-layers}} and {{pkg|vulkan-tools}} (you can find the vulkaninfo tool in here).
 +
 +
== Verification ==
 +
To see which Vulkan implementations are currently installed on your system, use the following command:
 +
$ ls /usr/share/vulkan/icd.d/
  
 
== Vulkan Hardware Database ==
 
== Vulkan Hardware Database ==

Revision as of 03:45, 18 June 2019

From wikipedia:Vulkan (API):

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Learn more at Khronos.

Installation

Note: On hybrid graphics (NVIDIA Optimus/AMD Dynamic Switchable Graphics):

To run a Vulkan application, you will need to install the vulkan-icd-loader package (and lib32-vulkan-icd-loader if you also want to run 32-bit applications), as well as the Vulkan drivers for your graphics card(s):

Other drivers may be installed manually instead:

For Vulkan application development, install vulkan-headers, and optionally vulkan-validation-layers and vulkan-tools (you can find the vulkaninfo tool in here).

Verification

To see which Vulkan implementations are currently installed on your system, use the following command:

$ ls /usr/share/vulkan/icd.d/

Vulkan Hardware Database

The Vulkan Hardware Database provides user reported GPU/driver combinations. Supplying own information is possible by using vulkan-caps-viewerAUR.

Troubleshooting

Error - vulkan: No DRI3 support

If you get the message above and using Intel graphics, you may need to force DRI3 and restart Xorg:

/etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "DRI"    "3"
EndSection

Nvidia - vulkan is not working and can not initialize

Check if you have vulkan-intel installed, it may prevent Nvidia's vulkan driver from being detected.

Alternatively set the environment variable VK_ICD_FILENAMES to /usr/share/vulkan/icd.d/nvidia_icd.json.