Struct wgpu_core::instance::Adapter

source ·
pub struct Adapter {
    pub(crate) raw: DynExposedAdapter,
}

Fields§

§raw: DynExposedAdapter

Implementations§

source§

impl Adapter

source

pub fn new(raw: DynExposedAdapter) -> Self

source

pub fn backend(&self) -> Backend

Returns the backend this adapter is using.

source

pub fn is_surface_supported(&self, surface: &Surface) -> bool

source

pub fn get_info(&self) -> AdapterInfo

source

pub fn features(&self) -> Features

source

pub fn limits(&self) -> Limits

source

pub fn downlevel_capabilities(&self) -> DownlevelCapabilities

source

pub fn get_presentation_timestamp(&self) -> PresentationTimestamp

source

pub fn get_texture_format_features( &self, format: TextureFormat, ) -> TextureFormatFeatures

source

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>

source

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§

source§

impl ResourceType for Adapter

source§

const TYPE: &'static str = "Adapter"

source§

impl StorageItem for Adapter

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast<T> for T

source§

fn downcast(&self) -> &T

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Upcast<T> for T

source§

fn upcast(&self) -> Option<&T>

source§

impl<T> WasmNotSend for T
where T: Send,

source§

impl<T> WasmNotSendSync for T

source§

impl<T> WasmNotSync for T
where T: Sync,