pub struct Adapter { /* private fields */ }
Implementations§
source§impl Adapter
impl Adapter
pub fn new(raw: DynExposedAdapter) -> Self
pub fn is_surface_supported(&self, surface: &Surface) -> bool
pub fn get_info(&self) -> AdapterInfo
pub fn features(&self) -> Features
pub fn limits(&self) -> Limits
pub fn downlevel_capabilities(&self) -> DownlevelCapabilities
pub fn get_presentation_timestamp(&self) -> PresentationTimestamp
pub fn get_texture_format_features( &self, format: TextureFormat ) -> TextureFormatFeatures
pub fn create_device_and_queue( self: &Arc<Self>, desc: &DeviceDescriptor<'_>, instance_flags: InstanceFlags, trace_path: Option<&Path> ) -> Result<(Arc<Device>, Arc<Queue>), RequestDeviceError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl !UnwindSafe 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