pub struct WgpuDeviceInfo {
pub name: String,
pub backend: String,
pub driver_version: String,
pub vram_bytes: u64,
pub supports_f64: bool,
pub max_workgroup_size: [u32; 3],
}Expand description
Information about the GPU device selected by the wgpu adapter.
Fields§
§name: StringHuman-readable device name (e.g. "NVIDIA GeForce RTX 4090").
backend: StringBackend API in use: "Vulkan", "Metal", "Dx12", "WebGpu", or "None".
driver_version: StringDriver version string (if available).
vram_bytes: u64Total VRAM in bytes (0 if not reported by the adapter).
supports_f64: boolWhether the device supports 64-bit floating-point storage.
max_workgroup_size: [u32; 3]Maximum workgroup size (x, y, z).
Trait Implementations§
Source§impl Clone for WgpuDeviceInfo
impl Clone for WgpuDeviceInfo
Source§fn clone(&self) -> WgpuDeviceInfo
fn clone(&self) -> WgpuDeviceInfo
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 moreSource§impl Debug for WgpuDeviceInfo
impl Debug for WgpuDeviceInfo
Source§impl Default for WgpuDeviceInfo
impl Default for WgpuDeviceInfo
Source§fn default() -> WgpuDeviceInfo
fn default() -> WgpuDeviceInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WgpuDeviceInfo
impl RefUnwindSafe for WgpuDeviceInfo
impl Send for WgpuDeviceInfo
impl Sync for WgpuDeviceInfo
impl Unpin for WgpuDeviceInfo
impl UnsafeUnpin for WgpuDeviceInfo
impl UnwindSafe for WgpuDeviceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more