pub struct Extension {
    pub name: ExtensionName,
    pub number: i32,
    pub type_: &'static str,
    pub author: &'static str,
    pub contact: &'static str,
    pub platform: Option<&'static str>,
    pub required_extensions: Option<&'static [ExtensionName]>,
    pub required_version: Option<&'static str>,
    pub deprecated_by: Option<&'static str>,
    pub obsoleted_by: Option<&'static str>,
    pub promoted_to: Option<&'static str>,
}
Expand description

A collection of metadata for a Vulkan extension.

Fields

name: ExtensionName

The name of the extension.

number: i32

The unique number assigned to the extension.

type_: &'static str

The type of the extension (device or instance).

author: &'static str

The author of the extension (e.g., KHR).

contact: &'static str

The primary contact(s) for the extension.

platform: Option<&'static str>

The platform the extension applies to (e.g., wayland or win32).

required_extensions: Option<&'static [ExtensionName]>

The other extensions required by the extension.

required_version: Option<&'static str>

The Vulkan version required by the extension (e.g., 1.1).

deprecated_by: Option<&'static str>

The Vulkan extension or version that deprecated the extension (e.g., VK_VERSION_1_1).

obsoleted_by: Option<&'static str>

The Vulkan extension or version that obsoleted the extension (e.g., VK_VERSION_1_1).

promoted_to: Option<&'static str>

The Vulkan version the extension was promoted to core in (e.g., VK_VERSION_1_1).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.