Trait wgpu_hal::Adapter

source ·
pub trait Adapter<A: Api>: WasmNotSendSync {
    // Required methods
    unsafe fn open(
        &self,
        features: Features,
        limits: &Limits
    ) -> Result<OpenDevice<A>, DeviceError>;
    unsafe fn texture_format_capabilities(
        &self,
        format: TextureFormat
    ) -> TextureFormatCapabilities;
    unsafe fn surface_capabilities(
        &self,
        surface: &A::Surface
    ) -> Option<SurfaceCapabilities>;
    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp;
}

Required Methods§

source

unsafe fn open( &self, features: Features, limits: &Limits ) -> Result<OpenDevice<A>, DeviceError>

source

unsafe fn texture_format_capabilities( &self, format: TextureFormat ) -> TextureFormatCapabilities

Return the set of supported capabilities for a texture format.

source

unsafe fn surface_capabilities( &self, surface: &A::Surface ) -> Option<SurfaceCapabilities>

Returns the capabilities of working with a specified surface.

None means presentation is not supported for it.

source

unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

Creates a PresentationTimestamp using the adapter’s WSI.

Implementors§

source§

impl Adapter<Api> for Context

source§

impl Adapter<Api> for wgpu_hal::gles::Adapter

source§

impl Adapter<Api> for wgpu_hal::vulkan::Adapter