pub enum Feature {
Core(ApiVersion),
Extension(Extension),
}Available on crate feature
unstable only.Expand description
A union type of extensions and core API version.
In vk.xml, Vulkan commands and types are grouped under different API version and extensions.
The tag of those group XML elements is feature or extension. One command will have only one
single correspondent feature. This type is mostly used to tell if a command should be returned
by vkGet*ProcAddr given the supported/enabled Vulkan API version and extensions.
Variants§
Trait Implementations§
Source§impl From<ApiVersion> for Feature
impl From<ApiVersion> for Feature
Source§fn from(value: ApiVersion) -> Self
fn from(value: ApiVersion) -> Self
Converts to this type from the input type.
Source§impl Ord for Feature
impl Ord for Feature
Source§impl PartialOrd for Feature
impl PartialOrd for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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