pub struct RuntimeInfo {
pub host: HostInfo,
pub adapter: AdapterInfo,
pub granted: Limits,
pub available: Limits,
pub timestamp_query: bool,
pub vertex_storage: bool,
}Expand description
Host and adapter facts for one device.
Fields§
§host: HostInfoFacts about the host.
adapter: AdapterInfoAdapter the device came from.
granted: LimitsLimits the device was created with, after gpu::limits::raise.
available: LimitsLimits the adapter would have allowed, so a gap is headroom left unclaimed.
timestamp_query: boolWhether the device granted TIMESTAMP_QUERY.
vertex_storage: boolWhether a vertex shader can read a storage buffer. Drawing network edges requires this.
Implementations§
Source§impl RuntimeInfo
impl RuntimeInfo
Sourcepub fn collect(adapter: &Adapter, device: &Device) -> Self
pub fn collect(adapter: &Adapter, device: &Device) -> Self
Collects the facts of adapter, device and the host. Call it once the thread pool exists, as
HostInfo::collect says.
Sourcepub fn display_cap(&self) -> u32
pub fn display_cap(&self) -> u32
Longest side of a display texture on this device, after Henad’s own cap.
Trait Implementations§
Source§impl Clone for RuntimeInfo
impl Clone for RuntimeInfo
Auto Trait Implementations§
impl Freeze for RuntimeInfo
impl RefUnwindSafe for RuntimeInfo
impl Send for RuntimeInfo
impl Sync for RuntimeInfo
impl Unpin for RuntimeInfo
impl UnsafeUnpin for RuntimeInfo
impl UnwindSafe for RuntimeInfo
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