SaschaWillems / Vulkan

C++ examples for the Vulkan graphics API
MIT License
10.35k stars 2.03k forks source link

Most examples fail on Ubuntu 16.04 Nvidia GTX680 Geforce 375.66 driver #357

Closed wbeyda closed 7 years ago

wbeyda commented 7 years ago

Most examples fail on Ubuntu 16.04 Nvidia GTX680 Geforce 375.66 driver

After setting: #define ENABLE_VALIDATION true on all examples I get the error:

Could not create Vulkan instance : ERROR_LAYER_NOT_PRESENT

for the following examples:

vulankinfo attached. info.txt

SaschaWillems commented 7 years ago

Are you sure that the validation layers are actually installed? Looking at your info.txt the only layers listed are those from steam, and not one single validation layer:

Layers: count = 2
=======
VK_LAYER_VALVE_steam_overlay_64 (Steam Overlay Layer) Vulkan version 1.0.3, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GTX 680)
        Layer-Device Extensions count = 0

VK_LAYER_VALVE_steam_overlay_32 (Steam Overlay Layer) Vulkan version 1.0.3, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GTX 680)
        Layer-Device Extensions count = 0
wbeyda commented 7 years ago

How do I install the Validation Layers?

SaschaWillems commented 7 years ago

Either build and install from source (https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers) or install a current version of the LunarG SDK for linux and follow the instructions at https://vulkan.lunarg.com/doc/view/latest/linux/getting_started.html.