Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LayerNotPresent error in debug.rs example #1977

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

CodesOtakuYT
Copy link
Contributor

the example debug.rs doesn't work on my arch Linux machine with the latest vulkan-validation-layers package:

pacman -Q --info vulkan-validation-layers
Name            : vulkan-validation-layers
Version         : 1.3.224.1-1
Description     : Vulkan Validation Layers
Architecture    : x86_64
URL             : https://www.khronos.org/vulkan/
Licenses        : custom
Groups          : vulkan-devel
Provides        : libVkLayer_khronos_validation.so=libVkLayer_khronos_validation.so-64
Depends On      : gcc-libs  vulkan-icd-loader  vulkan-headers  libx11
Optional Deps   : None
Required By     : vulkan-extra-layers  vulkan-extra-tools
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 276.32 MiB
Packager        : Laurent Carlier <lordheavym@archlinux.org>
Build Date      : Thu 08 Sep 2022 08:31:35 AM +01
Install Date    : Tue 13 Sep 2022 12:30:49 PM +01
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

with error:

List of Vulkan debugging layers available to use:
        VK_LAYER_NV_optimus
        VK_LAYER_LUNARG_api_dump
        VK_LAYER_LUNARG_monitor
        VK_LAYER_LUNARG_screenshot
        VK_LAYER_KHRONOS_validation
thread 'main' panicked at 'failed to create Vulkan instance: LayerNotPresent', examples/src/bin/debug.rs:78:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

am not sure about the mac os validation layer name, but in this case, I just removed the platform-dependent code altogether.

@Rua
Copy link
Contributor

Rua commented Sep 13, 2022

Looks good, thank you!

@Rua Rua merged commit e0af8af into vulkano-rs:master Sep 13, 2022
@CodesOtakuYT CodesOtakuYT deleted the pr_branch branch September 14, 2022 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants