Struct vulkanalia::Version
source · pub struct Version {
pub major: u32,
pub minor: u32,
pub patch: u32,
}
Expand description
A Vulkan version.
Fields§
§major: u32
The major version (the x
in x.y.z
).
minor: u32
The minor version (the y
in x.y.z
).
patch: u32
The patch version (the z
in x.y.z
).
If the version of Vulkan is not at least 1.1.0
, then the patch version
will not be known due to the vkEnumerateInstanceVersion
function not
being available. In this case this field is set to 0
.
Implementations§
Trait Implementations§
source§impl Ord for Version
impl Ord for Version
source§impl PartialEq for Version
impl PartialEq for Version
source§impl PartialOrd for Version
impl PartialOrd for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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