pub struct Version {
pub major: u32,
pub minor: u32,
pub patch: u32,
}
Expand description
Represents an API version of Vulkan.
Fields§
§major: u32
Major version number.
minor: u32
Minor version number.
patch: u32
Patch version number.
Implementations§
§impl Version
impl Version
pub const HEADER_VERSION: Version = _
pub const HEADER_VERSION: Version = _
The highest Vulkan API version currently supported by Vulkano.
It is allowed for applications that use Vulkano to make use of features from higher versions than this. However, Vulkano itself will not make use of those features and will not expose their APIs, so they must be accessed by other means.
The max_api_version
of an Instance
equals
HEADER_VERSION
by default, which locks out features from newer versions. In order
to enable the use of higher versions, the max_api_version
must be overridden when
creating an instance.
source§impl Version
impl Version
pub const V1_0: Version = _
pub const V1_1: Version = _
pub const V1_2: Version = _
pub const V1_3: Version = _
pub const V1_4: Version = _
pub const V1_5: Version = _
pub const V1_6: Version = _
sourcepub const fn major_minor(major: u32, minor: u32) -> Version
pub const fn major_minor(major: u32, minor: u32) -> Version
Constructs a Version
from the given major and minor version numbers.
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 StructuralEq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
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