pub struct ApiVersion {
pub major: u8,
pub minor: u16,
}Available on crate feature
unstable only.Expand description
Vulkan API version number.
Can be used to store the result decoded from
VK_MAKE_API_VERSION.
Fields§
§major: u8The major version number. At most 7 bits.
minor: u16The minor version number. At most 10 bits
Implementations§
Source§impl ApiVersion
impl ApiVersion
Sourcepub const V1_0: Self
pub const V1_0: Self
Vulkan version 1.0. The initial release of the Vulkan API.
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_VERSION_1_0.html
Trait Implementations§
Source§impl Clone for ApiVersion
impl Clone for ApiVersion
Source§fn clone(&self) -> ApiVersion
fn clone(&self) -> ApiVersion
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 From<ApiVersion> for u32
impl From<ApiVersion> for u32
Source§fn from(value: ApiVersion) -> Self
fn from(value: ApiVersion) -> Self
Converts to this type from the input type.
Source§impl From<u32> for ApiVersion
impl From<u32> for ApiVersion
Source§impl Ord for ApiVersion
impl Ord for ApiVersion
Source§fn cmp(&self, other: &ApiVersion) -> Ordering
fn cmp(&self, other: &ApiVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ApiVersion
impl PartialEq for ApiVersion
Source§impl PartialOrd for ApiVersion
impl PartialOrd 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 UnwindSafe for ApiVersion
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