pub struct VulkanLibrary { /* private fields */ }
Expand description

A loaded library containing a valid Vulkan implementation.

Implementations

Loads the default Vulkan library for this system.

Loads a custom Vulkan library.

Returns pointers to the raw global Vulkan functions of the library.

Returns the highest Vulkan version that is supported for instances.

Returns the extension properties reported by the core library.

Returns the extensions that are supported by the core library.

Returns the list of layers that are available when creating an instance.

On success, this function returns an iterator that produces LayerProperties objects. In order to enable a layer, you need to pass its name (returned by LayerProperties::name()) when creating the Instance.

Note: The available layers may change between successive calls to this function, so each call may return different results. It is possible that one of the layers enumerated here is no longer available when you create the Instance. This will lead to an error when calling Instance::new.

Examples
use vulkano::VulkanLibrary;

let library = VulkanLibrary::new().unwrap();

for layer in library.layer_properties().unwrap() {
    println!("Available layer: {}", layer.name());
}

Returns the extension properties that are reported by the given layer.

Returns the extensions that are supported by the given layer.

Returns the union of the extensions that are supported by the core library and all the given layers.

Calls get_instance_proc_addr on the underlying loader.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.