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