Struct vulkanalia::vk::Extension
source · pub struct Extension {
pub name: StringArray<vulkanalia_sys::::extensions::ExtensionName::{constant#0}>,
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 [StringArray<vulkanalia_sys::::extensions::ExtensionName::{constant#0}>]>,
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: StringArray<vulkanalia_sys::::extensions::ExtensionName::{constant#0}>
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
).
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 [StringArray<vulkanalia_sys::::extensions::ExtensionName::{constant#0}>]>
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§
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more