pub struct GpuInfo {
pub tier: String,
pub base_vertex: bool,
pub adapter: AdapterInfo,
pub features: Features,
pub limits: Limits,
}Expand description
The device a test run draws with, as a serializable record.
Self::read is the whole of it; the structure of the JSON is the field
list below.
Fields§
§tier: StringThe tier the device was requested at: webgpu, webgl2 or native.
A tier is what the run asked for, so it is not visible in the device: a WebGL2-shaped device on a desktop adapter reports the adapter’s features. The limits and the capabilities below are what tell the two apart.
base_vertex: boolWhether an indexed draw may use a non-zero base_vertex, which is what
WebGL2 lacks.
wgpu keeps this apart from the device, so it is carried here rather
than derived; see DeviceCapabilities.
adapter: AdapterInfoThe adapter: backend, name, vendor, driver and device type.
features: FeaturesThe features the device was created with.
limits: LimitsThe limits the device was created with.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for GpuInfo
impl Freeze for GpuInfo
impl RefUnwindSafe for GpuInfo
impl Send for GpuInfo
impl Sync for GpuInfo
impl Unpin for GpuInfo
impl UnsafeUnpin for GpuInfo
impl UnwindSafe for GpuInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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