pub struct DawnAdapter { /* private fields */ }Methods from Deref<Target = Adapter>§
pub fn get_instance(&self) -> Instance
pub fn get_limits(&self, limits: &mut Limits) -> Status
pub fn get_info(&self, info: &mut AdapterInfo) -> Status
pub fn has_feature(&self, feature: FeatureName) -> bool
pub fn get_features(&self, features: &mut SupportedFeatures)
pub fn request_device( &self, descriptor: Option<&DeviceDescriptor>, callback: impl FnMut(RequestDeviceStatus, Option<Device>, String) + Send + 'static, ) -> Future
pub fn create_device(&self, descriptor: Option<&DeviceDescriptor>) -> Device
pub fn get_format_capabilities( &self, format: TextureFormat, capabilities: &mut DawnFormatCapabilities, ) -> Status
Trait Implementations§
Source§impl AdapterInterface for DawnAdapter
impl AdapterInterface for DawnAdapter
fn request_device( &self, desc: &DeviceDescriptor<'_>, ) -> Pin<Box<dyn RequestDeviceFuture>>
fn is_surface_supported(&self, surface: &DispatchSurface) -> bool
fn features(&self) -> Features
fn limits(&self) -> Limits
fn downlevel_capabilities(&self) -> DownlevelCapabilities
fn get_info(&self) -> AdapterInfo
fn get_texture_format_features( &self, _format: TextureFormat, ) -> TextureFormatFeatures
fn get_presentation_timestamp(&self) -> PresentationTimestamp
Source§impl Clone for DawnAdapter
impl Clone for DawnAdapter
Source§fn clone(&self) -> DawnAdapter
fn clone(&self) -> DawnAdapter
Returns a duplicate of the value. Read more
1.0.0 · 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 DawnAdapter
impl Debug for DawnAdapter
Auto Trait Implementations§
impl Freeze for DawnAdapter
impl RefUnwindSafe for DawnAdapter
impl Send for DawnAdapter
impl Sync for DawnAdapter
impl Unpin for DawnAdapter
impl UnsafeUnpin for DawnAdapter
impl UnwindSafe for DawnAdapter
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