pub struct WebGpuDevice {
pub adapter_name: String,
/* private fields */
}Expand description
A fully initialised WebGPU device together with its submit queue.
Created via WebGpuDevice::new which blocks the calling thread using
pollster until the async device request completes.
Fields§
§adapter_name: StringHuman-readable adapter name for diagnostics.
Implementations§
Source§impl WebGpuDevice
impl WebGpuDevice
Sourcepub fn new() -> WebGpuResult<Self>
pub fn new() -> WebGpuResult<Self>
Create a WebGPU device by selecting the highest-performance adapter.
Blocks the calling thread until the device is ready.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebGpuDevice
impl !RefUnwindSafe for WebGpuDevice
impl Send for WebGpuDevice
impl Sync for WebGpuDevice
impl Unpin for WebGpuDevice
impl UnsafeUnpin for WebGpuDevice
impl !UnwindSafe for WebGpuDevice
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