pub struct Adapter {
pub(crate) raw: DynExposedAdapter,
}
Fields§
§raw: DynExposedAdapter
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
fn create_device_and_queue_from_hal( self: &Arc<Self>, hal_device: DynOpenDevice, desc: &DeviceDescriptor<'_>, instance_flags: InstanceFlags, trace_path: Option<&Path>, ) -> Result<(Arc<Device>, Arc<Queue>), RequestDeviceError>
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 Freeze for Adapter
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