pub struct DeviceInfo {
pub hardware: DeviceHardwareInfo,
pub software: DeviceSoftwareInfo,
}Fields§
§hardware: DeviceHardwareInfo§software: DeviceSoftwareInfoImplementations§
Source§impl DeviceInfo
impl DeviceInfo
pub const fn index(&self) -> usize
pub fn name(&self) -> &str
pub const fn kind(&self) -> DeviceKind
pub fn api_version(&self) -> &str
pub const fn vendor_id(&self) -> u32
pub const fn device_id(&self) -> u32
pub fn driver_name(&self) -> &str
pub fn driver_info(&self) -> &str
pub const fn driver_version(&self) -> u32
Sourcepub const fn capability_identity(&self) -> u64
pub const fn capability_identity(&self) -> u64
Stable hash of device and driver UUIDs, limits, and queried capabilities.
Live memory budget and usage are deliberately excluded.
pub const fn local_memory_bytes(&self) -> u64
Sourcepub const fn local_memory_budget_bytes(&self) -> Option<u64>
pub const fn local_memory_budget_bytes(&self) -> Option<u64>
Local memory budget observed when the runtime was created, if advertised.
Sourcepub const fn local_memory_unified(&self) -> bool
pub const fn local_memory_unified(&self) -> bool
Whether device-local memory is host-visible on this device — mapped writes reach the storage heap without a staging copy.
Sourcepub const fn local_memory_usage_bytes(&self) -> Option<u64>
pub const fn local_memory_usage_bytes(&self) -> Option<u64>
Local memory usage observed when the runtime was created, if advertised.
pub const fn max_compute_workgroup_invocations(&self) -> u32
pub const fn subgroup_size(&self) -> u32
Sourcepub const fn storage_buffer_descriptors(&self) -> u32
pub const fn storage_buffer_descriptors(&self) -> u32
Allocated storage-buffer descriptor capacity after heap negotiation.
Sourcepub const fn storage_image_descriptors(&self) -> u32
pub const fn storage_image_descriptors(&self) -> u32
Allocated storage-image descriptor capacity after heap negotiation.
pub const fn supports_shader_float16(&self) -> bool
pub const fn supports_storage_buffer_16_bit_access(&self) -> bool
pub const fn supports_fp16_storage(&self) -> bool
pub const fn supports_shader_float64(&self) -> bool
pub const fn supports_shader_integer_dot_product(&self) -> bool
pub const fn cooperative_matrix_tuple_count(&self) -> usize
pub const fn supports_graphics(&self) -> bool
pub const fn supports_swapchain(&self) -> bool
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
impl Eq for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Forget for DeviceInfo
impl Freeze for DeviceInfo
impl Move for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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