Struct GPUCharacteristics

Source
pub struct GPUCharacteristics {
Show 16 fields pub memory_pressure: f32, pub compute_units: Option<u32>, pub shader_engines: Option<u32>, pub shader_arrays_per_engine_count: Option<u32>, pub compute_units_per_shader_array: Option<u32>, pub simd_per_compute_unit: Option<u32>, pub wavefronts_per_simd: Option<u32>, pub wavefront_size: Option<u32>, pub streaming_multiprocessors: Option<u32>, pub warps_per_sm: Option<u32>, pub max_image_dimension_2d: u32, pub max_compute_shared_memory_size: u32, pub max_compute_work_group_invocations: u32, pub dedicated_transfer_queue: bool, pub dedicated_async_compute_queue: bool, pub supports_ray_tracing: bool,
}
Expand description

Contains various characteristics of a GPU. Vendor-specific properties are stored as Options. Also includes some general device limits.

Fields§

§memory_pressure: f32

Memory pressure as computed from VRAM usage (0.0 to 1.0)

§compute_units: Option<u32>§shader_engines: Option<u32>§shader_arrays_per_engine_count: Option<u32>§compute_units_per_shader_array: Option<u32>§simd_per_compute_unit: Option<u32>§wavefronts_per_simd: Option<u32>§wavefront_size: Option<u32>§streaming_multiprocessors: Option<u32>§warps_per_sm: Option<u32>§max_image_dimension_2d: u32§max_compute_shared_memory_size: u32§max_compute_work_group_invocations: u32§dedicated_transfer_queue: bool§dedicated_async_compute_queue: bool§supports_ray_tracing: bool

Trait Implementations§

Source§

impl Debug for GPUCharacteristics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.