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 PartialOrd for Version
impl PartialOrd for Version
impl 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