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

A utility struct to create, access and hold alive Vulkano device, instance and queues.

Vulkano context is used in the creation of your graphics or compute pipelines, images and in the creation of VulkanoWindowRenderer through VulkanoWindows.

Example

use vulkano_util::context::{VulkanoConfig, VulkanoContext};

fn test() {
    let context = VulkanoContext::new(VulkanoConfig::default());
    // Then create event loop, windows, pipelines, etc.
}

Implementations

Creates a new VulkanoContext.

Panics
  • Panics where the underlying Vulkano struct creations fail

Returns the name of the device.

Returns the type of the device.

Returns the maximum memory allocation of the device.

Returns the instance.

Returns the device.

Returns the graphics queue.

Returns the compute queue.

Depending on your device, this might be the same as graphics queue.

Trait Implementations

Returns the “default value” for a type. 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.