pub trait AdapterInterface: CommonTraits {
// Required methods
fn request_device(
&self,
desc: &DeviceDescriptor<'_>,
trace_dir: Option<&Path>,
) -> 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;
}
Required Methods§
fn request_device( &self, desc: &DeviceDescriptor<'_>, trace_dir: Option<&Path>, ) -> 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
Implementors§
impl AdapterInterface for CoreAdapter
Available on
wgpu_core
only.