pub struct RendererDiagnostics<'renderer> { /* private fields */ }Expand description
Adapter and presentation context captured from the active renderer.
This view does not allocate, query the GPU, or wait for completion. A host should record it with performance reports instead of guessing the selected adapter from the machine’s hardware. Borrowing prevents resize or device replacement while the view is in use; obtain a new view after either event. The strings describe driver-reported identity, not an independent hardware attestation. An empty PCI address means instance identity is unavailable.
Implementations§
Source§impl RendererDiagnostics<'_>
impl RendererDiagnostics<'_>
Sourcepub fn adapter_name(&self) -> &str
pub fn adapter_name(&self) -> &str
Human-readable name of the adapter actually selected by the renderer.
Sourcepub const fn backend(&self) -> &'static str
pub const fn backend(&self) -> &'static str
Stable lowercase graphics API name, such as vulkan.
Sourcepub const fn vendor_id(&self) -> u32
pub const fn vendor_id(&self) -> u32
Driver-reported PCI vendor ID; together with device ID identifies a model.
Sourcepub const fn device_id(&self) -> u32
pub const fn device_id(&self) -> u32
Driver-reported device model ID, not a physical-instance identifier.
Sourcepub fn pci_bus_id(&self) -> &str
pub fn pci_bus_id(&self) -> &str
PCI address of the selected physical GPU, or empty when unavailable.
Sourcepub fn driver_info(&self) -> &str
pub fn driver_info(&self) -> &str
Driver version or implementation details reported by the adapter.
Sourcepub const fn scale_factor(&self) -> f64
pub const fn scale_factor(&self) -> f64
Physical surface pixels per logical screen pixel at capture time.
Sourcepub const fn physical_size(&self) -> [u32; 2]
pub const fn physical_size(&self) -> [u32; 2]
Configured surface width and height in physical pixels.
Sourcepub const fn surface_format(&self) -> TextureFormat
pub const fn surface_format(&self) -> TextureFormat
Actual presentation texture format, not an assumed offscreen format.
Sourcepub const fn sample_count(&self) -> u32
pub const fn sample_count(&self) -> u32
Raster sample count selected for the actual presentation format.
Sourcepub const fn present_mode(&self) -> RendererSurfacePresentMode
pub const fn present_mode(&self) -> RendererSurfacePresentMode
Actual presentation mode after capability-dependent fallback.