vulkano, how do you use ValidationFeatureEnableEXT?

Viewed 48

I am trying to port a vulkan project from C++ into rust.

Right now I am trying to translate the following snippet:

    auto enabled = vk::ValidationFeatureEnableEXT::eBestPractices;
    vk::ValidationFeaturesEXT features;
    features.enabledValidationFeatureCount = 0;
    features.pEnabledValidationFeatures = &enabled;

I have looked into the docs and I cannot, for the life of me, find a definition that maps into VkValidationFeatureEnableEXT.

In fact looking into the definition of the create info struct

https://docs.rs/vulkano/latest/vulkano/instance/struct.InstanceCreateInfo.html

I don't even see the pNext field which all structs in vulkan need for extended functionality.

How do I use extensions?

1 Answers

Th solution is to not use vulkano at all an instead use the much better written ash library which does have a 1:1 mapping for the vulkan API:

https://docs.rs/crate/ash/latest

Related