Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.08k stars 513 forks source link

checkValidationLayerSupport fails #197

Closed JlnWntr closed 3 years ago

JlnWntr commented 3 years ago

vulkaninfo on my Ubuntu 18 machine gives me this:

===========
VULKAN INFO
===========

Vulkan Instance Version: 1.1.70

Instance Extensions:
====================
Instance Extensions count = 18
    VK_KHR_device_group_creation        : extension revision  1
...     
    VK_EXT_debug_report                 : extension revision  8
    VK_EXT_direct_mode_display          : extension revision  1
    VK_EXT_display_surface_counter      : extension revision  1
    VK_EXT_debug_utils                  : extension revision  1
Layers: count = 2
=======
VK_LAYER_NV_optimus (NVIDIA Optimus layer) Vulkan version 1.1.119, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GeForce GT 640)
        Layer-Device Extensions count = 0

VK_LAYER_LUNARG_standard_validation (LunarG Standard Validation Layer) Vulkan version 1.0.126, layer version 1
    Layer Extensions    count = 0
    Devices     count = 1
        GPU id       : 0 (GeForce GT 640)
        Layer-Device Extensions count = 0

while the 04_logical_device program tells me

validation layers requested, but not available!

Is this correct? If I understand vulkaninfo correctly, there is a validation layer available.

lewa-j commented 3 years ago

There is no VK_LAYER_KHRONOS_validation

JlnWntr commented 3 years ago

My bad! Thanks for the hint.