pub struct Adapter(/* private fields */);Expand description
the GPU the browser offers
Implementations§
Source§impl Adapter
impl Adapter
pub fn info(&self) -> &AdapterInfo
pub fn features(&self) -> &Features
pub fn limits(&self) -> &Limits
pub fn can_present(&self, _surface: &Surface) -> bool
Sourcepub fn create_device(&self, _desc: &DeviceDesc) -> Result<Device>
pub fn create_device(&self, _desc: &DeviceDesc) -> Result<Device>
the device of this adapter, which prepare got (WebGPU gives one per adapter: a second one takes a new Instance)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Adapter
impl !Send for Adapter
impl !Sync for Adapter
impl !UnwindSafe for Adapter
impl Forget for Adapter
impl Freeze for Adapter
impl Unpin for Adapter
impl UnsafeUnpin for Adapter
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