Tweet about this on TwitterShare on Google+Share on FacebookShare on TumblrShare on Reddit


SPOCKBig kudos to Strider in Shatrealm for going through the motions and giving us the rough draft for this How To.

Vulkan is out! That’s right. That magical API, which everyone is hoping will make Linux gaming not so bad in terms of performance, is finally ready for game developers to include it in their games. But, since we’re a bunch of impatient assholes and we know quite a few others out there are as well, we’re here to show you how to test Vulkan for yourself with some of the NVidia demos. Let’s get started, then.

Caveat: This How To assumes you are using Ubuntu and have an NVidia GPU. If you’re using an Intel graphics chip, you can refer to this page to find out how to get the drivers. There’s also a Fedora COPR repo in that page. If you want to try this on Fedora, you should be able to easily adapt this How To. If you’re using an AMD GPU or APU, you’re sitting on your thumbs until AMD get their heads out of their ass and start paying attention to Linux.

Stuff you’ll need:

Time to get crackin’:

  1. Let’s make a folder to hold everything. Open your terminal and:
    1. mkdir vulkan-test
  2. Move the NVIDIA-Linux-x86_64-355.00.26.runvulkansdk-linux-x86_64-1.0.3.1.run, and theAntTweakBar_116.zip files into said folder.
  3. Remove your currently installed NVidia drivers
    1. sudo apt-get remove nvidia-*
    2. sudo apt-get autoremove
  4. Install the 355.00.26 Beta drivers you’ve downloaded. Warning: This is will kill your X session, make sure to have this How To loaded up on your phone, tablet, laptop, netbook, smart TV or whatever.
    1. Hit CTRL+Alt+F2 and login on that TTY
    2. cd ~/vulkan-test
    3. sudo service lightdm stop (you may have to hit Ctrl+Alt+F2 again, after this)
    4. chmod +x NVIDIA-Linux-x86_64-355.00.26.run
    5. sudo ./NVIDIA-Linux-x86_64-355.00.26.run
    6. Follow the prompts to install the driver
    7. sudo service lightdm start
  5. Login once more and open the terminal again, it’s time to install the Vulkan SDK:
    1. cd ~/vulkan-test
    2. chmod +x vulkansdk-linux-x86_64-1.0.3.1.run
    3. ./vulkansdk-linux-x86_64-1.0.3.1.run
    4. Follow the prompts once more
  6. Extract the AntTweakBar library we need:
    1. cd ~/vulkan-test
    2. unzip -a AntTweakBar_116.zip
    3. cd AntTweakBar/src
    4. make
    5. cd ../include
    6. sudo cp AntTweakBar.h /usr/include
    7. cd ../lib
    8. sudo mv libAntTweakBar.so* libAntTweakBar.a /usr/lib/
    9. sudo ldconfig
  7. Install AssMode (For Fedora it’s just called assimp-devel):
    1. sudo apt-get install libassimp-dev
  8. Clone the Vulkan test gits:
    1. cd ~/vulkan-test
    2. git clone https://github.com/nvpro-samples/gl_vk_chopper.git
    3. git clone https://github.com/nvpro-samples/shared_sources.git
  9. Get to the Choppa:
    1. cd gl_vk_chopper
    2. mkdir build
    3. cd build
    4. cmake ..
    5. make
  10. Once the compile is done, you can just run it:
    1. cd ~/vulkan-test/gl_vk_chopper/build/bin_x64
    2. ./gl_vk_chopper