pub enum ApiVersion {
Vulkan12,
Vulkan13,
}Expand description
Vulkan API version.
Variants§
Implementations§
Source§impl ApiVersion
impl ApiVersion
Sourcepub fn try_parse_vk_api_version(
version: u32,
) -> Result<Self, ParseApiVersionError>
pub fn try_parse_vk_api_version( version: u32, ) -> Result<Self, ParseApiVersionError>
Returns a version parsed from a native Vulkan value.
Sourcepub fn patch(self) -> u32
pub fn patch(self) -> u32
Vulkan API minor version number component. Ex: v0.0.X-0.
Always zero.
Sourcepub fn to_vk_api_version(self) -> u32
pub fn to_vk_api_version(self) -> u32
Returns a native Vulkan value.
Trait Implementations§
Source§impl Clone for ApiVersion
impl Clone for ApiVersion
Source§fn clone(&self) -> ApiVersion
fn clone(&self) -> ApiVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiVersion
impl Debug for ApiVersion
Source§impl Default for ApiVersion
impl Default for ApiVersion
Source§fn default() -> ApiVersion
fn default() -> ApiVersion
Returns the “default value” for a type. Read more
Source§impl From<ApiVersion> for u32
impl From<ApiVersion> for u32
Source§fn from(val: ApiVersion) -> Self
fn from(val: ApiVersion) -> Self
Converts to this type from the input type.
Source§impl Hash for ApiVersion
impl Hash for ApiVersion
Source§impl PartialEq for ApiVersion
impl PartialEq for ApiVersion
Source§fn eq(&self, other: &ApiVersion) -> bool
fn eq(&self, other: &ApiVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for ApiVersion
impl TryFrom<u32> for ApiVersion
impl Copy for ApiVersion
impl Eq for ApiVersion
impl StructuralPartialEq for ApiVersion
Auto Trait Implementations§
impl Freeze for ApiVersion
impl RefUnwindSafe for ApiVersion
impl Send for ApiVersion
impl Sync for ApiVersion
impl Unpin for ApiVersion
impl UnsafeUnpin for ApiVersion
impl UnwindSafe for ApiVersion
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