#[non_exhaustive]pub struct VulkanHost {
pub api_version: VulkanVersion,
}Expand description
The host’s Vulkan runtime.
Reported from the loader and the installed ICD manifests, so — unlike
RocmHost and OneApiHost — this describes a runtime that is actually
present rather than a toolkit that may be. There is no architecture field:
SPIR-V is portable and driver-compiled, so a Vulkan build has no per-GPU
target to match.
Host-level, not per-device: see api_version for what
the number does and does not promise.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_version: VulkanVersionHighest API version any installed driver advertises in its ICD manifest.
A driver’s own static declaration on disk, which makes it two things it is easy to mistake it for:
- Not per-device. With two drivers installed — an AMD iGPU beside
an NVIDIA dGPU, say — this is the higher of the two and may describe
neither card. A specific device’s version comes from
vkGetPhysicalDeviceProperties, which means linking the loader and creating an instance; this crate deliberately does neither. - Not the loader’s instance version. That is what
vulkaninfoandvkEnumerateInstanceVersionreport, and it is usually the newer of the two, so the numbers routinely disagree. The driver’s is the one that binds in practice: loaders track the current headers while drivers implement features on their own schedule.
Compare on major/minor only — see VulkanVersion.
Trait Implementations§
Source§impl Clone for VulkanHost
impl Clone for VulkanHost
Source§fn clone(&self) -> VulkanHost
fn clone(&self) -> VulkanHost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VulkanHost
Source§impl Debug for VulkanHost
impl Debug for VulkanHost
impl Eq for VulkanHost
Source§impl PartialEq for VulkanHost
impl PartialEq for VulkanHost
impl StructuralPartialEq for VulkanHost
Auto Trait Implementations§
impl Freeze for VulkanHost
impl RefUnwindSafe for VulkanHost
impl Send for VulkanHost
impl Sync for VulkanHost
impl Unpin for VulkanHost
impl UnsafeUnpin for VulkanHost
impl UnwindSafe for VulkanHost
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