pub struct BackendSelectionResult<TAdapter> {
pub adapter: TAdapter,
pub adapter_info: GraphicsAdapterInfo,
pub selection_time_ms: u64,
pub attempted_backends: Vec<GraphicsBackendType>,
}
Expand description
The successful result of a backend selection operation.
This struct contains the chosen adapter handle (TAdapter
), which is a generic
type provided by the specific backend implementation (e.g., wgpu::Adapter
),
along with metadata about the selection process.
Fields§
§adapter: TAdapter
The handle to the selected graphics adapter (GPU).
adapter_info: GraphicsAdapterInfo
Detailed information about the selected adapter.
selection_time_ms: u64
The total time taken for the selection process, in milliseconds.
attempted_backends: Vec<GraphicsBackendType>
A list of all backend APIs that were attempted during the selection process.
Trait Implementations§
Auto Trait Implementations§
impl<TAdapter> Freeze for BackendSelectionResult<TAdapter>where
TAdapter: Freeze,
impl<TAdapter> RefUnwindSafe for BackendSelectionResult<TAdapter>where
TAdapter: RefUnwindSafe,
impl<TAdapter> Send for BackendSelectionResult<TAdapter>where
TAdapter: Send,
impl<TAdapter> Sync for BackendSelectionResult<TAdapter>where
TAdapter: Sync,
impl<TAdapter> Unpin for BackendSelectionResult<TAdapter>where
TAdapter: Unpin,
impl<TAdapter> UnwindSafe for BackendSelectionResult<TAdapter>where
TAdapter: UnwindSafe,
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