pub struct GpuReport {
pub adapter: String,
pub backend: String,
pub driver: String,
pub driver_info: String,
pub shader_compiler: String,
pub tier: &'static str,
pub intermediate_format: &'static str,
pub max_texture_dimension_2d: u32,
pub timestamp_queries: bool,
pub texture_budget_bytes: u64,
pub memory: GpuMemoryReport,
}Expand description
The GPU the renderer drives.
Fields§
§adapter: StringThe adapter’s name.
backend: StringThe graphics backend.
driver: StringThe driver’s name.
driver_info: StringThe driver’s version and details, where the platform gives them.
shader_compiler: StringThe DX12 shader compiler (FXC, DXC <path>, …); empty elsewhere.
tier: &'static stra (an adapter meeting all of WebGPU) or b (a downlevel one).
intermediate_format: &'static strIntermediate texture format, independent of tier: rgba16float where the adapter
renders, filters and copies it, else rgba8unorm.
max_texture_dimension_2d: u32The largest 2D texture side.
timestamp_queries: boolWhether passes are timed on the GPU.
texture_budget_bytes: u64The idle-texture pool’s byte budget.
memory: GpuMemoryReportThe adapter’s device memory.
Trait Implementations§
impl StructuralPartialEq for GpuReport
Auto Trait Implementations§
impl Freeze for GpuReport
impl RefUnwindSafe for GpuReport
impl Send for GpuReport
impl Sync for GpuReport
impl Unpin for GpuReport
impl UnsafeUnpin for GpuReport
impl UnwindSafe for GpuReport
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
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