vulkano-rs / vulkano

Safe and rich Rust wrapper around the Vulkan API
Apache License 2.0
4.36k stars 434 forks source link

create_info.enabled_extensions: contains `ext_validation_features`, but this extension is not supported by the library #2531

Closed MarkusTieger closed 2 weeks ago

MarkusTieger commented 2 weeks ago

Template

Issue

I am relatively new to vulkan, but I am trying to use the "ext_validation_features" extension in my application (for debugging). But after instance creation it panics with this message:

thread 'main' panicked at src/main.rs:23:10:
called `Result::unwrap()` on an `Err` value: a validation error occurred

Caused by:
    create_info.enabled_extensions: contains `ext_validation_features`, but this extension is not supported by the library

Vulkan VUIDs:
    VUID-vkCreateInstance-ppEnabledExtensionNames-01388
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
marc0246 commented 2 weeks ago

Did you install the Vulkan SDK? If you did it should work, and you also shouldn't need to do this because you can use vkconfig.

MarkusTieger commented 2 weeks ago

I have just the default vulkan packages from gentoo installed:

MarkusTieger commented 2 weeks ago

~So "vulkaninfo" doesn't have the extension listed. So it is definitly a problem on my side.~ nvm. It should be supported "VK_EXT_validation_features : extension revision 2"

marc0246 commented 2 weeks ago

Oh - you didn't enable the validation layer.

MarkusTieger commented 2 weeks ago

Ah thx, that fixed it.