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

Properties of a layer.

Implementations§

Returns the name of the layer.

If you want to enable this layer on an instance, you need to pass this value to Instance::new.

Examples
use vulkano::VulkanLibrary;

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

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

Returns a description of the layer.

This description is chosen by the layer itself.

Examples
use vulkano::VulkanLibrary;

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

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

Returns the version of Vulkan supported by this layer.

Examples
use vulkano::{Version, VulkanLibrary};

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

for layer in library.layer_properties().unwrap() {
    if layer.vulkan_version() >= Version::major_minor(2, 0) {
        println!("Layer {} requires Vulkan 2.0", layer.name());
    }
}

Returns an implementation-specific version number for this layer.

The number is chosen by the layer itself. It can be used for bug reports for example.

Examples
use vulkano::VulkanLibrary;

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

for layer in library.layer_properties().unwrap() {
    println!("Layer {} - Version: {}", layer.name(), layer.implementation_version());
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.