pub struct ComputeWgpuLib { /* private fields */ }Expand description
Loadable library that registers only successful wgpu adapter sites.
Implementations§
Source§impl ComputeWgpuLib
impl ComputeWgpuLib
Sourcepub fn probe() -> Result<Self>
pub fn probe() -> Result<Self>
Probes local wgpu adapters and builds a library from successful sites.
Sourcepub fn from_discovery(discovery: WgpuDiscovery) -> Self
pub fn from_discovery(discovery: WgpuDiscovery) -> Self
Builds a library from precomputed discovery evidence.
Sourcepub fn discovery(&self) -> &WgpuDiscovery
pub fn discovery(&self) -> &WgpuDiscovery
Returns discovery evidence, including failed-adapter diagnostics.
Trait Implementations§
Source§impl Clone for ComputeWgpuLib
impl Clone for ComputeWgpuLib
Source§fn clone(&self) -> ComputeWgpuLib
fn clone(&self) -> ComputeWgpuLib
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputeWgpuLib
impl Debug for ComputeWgpuLib
Source§impl Default for ComputeWgpuLib
impl Default for ComputeWgpuLib
Source§fn default() -> ComputeWgpuLib
fn default() -> ComputeWgpuLib
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ComputeWgpuLib
impl !UnwindSafe for ComputeWgpuLib
impl Freeze for ComputeWgpuLib
impl Send for ComputeWgpuLib
impl Sync for ComputeWgpuLib
impl Unpin for ComputeWgpuLib
impl UnsafeUnpin for ComputeWgpuLib
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