Trait rerun::external::eframe::egui_wgpu::wgpu::hal::Adapter

pub trait Adapter: WasmNotSendSync {
    type A: Api;

    // Required methods
    unsafe fn open(
        &self,
        features: Features,
        limits: &Limits,
        memory_hints: &MemoryHints
    ) -> Result<OpenDevice<Self::A>, DeviceError>;
    unsafe fn texture_format_capabilities(
        &self,
        format: TextureFormat
    ) -> TextureFormatCapabilities;
    unsafe fn surface_capabilities(
        &self,
        surface: &<Self::A as Api>::Surface
    ) -> Option<SurfaceCapabilities>;
    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp;
}

Required Associated Types§

type A: Api

Required Methods§

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

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

Return the set of supported capabilities for a texture format.

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

Returns the capabilities of working with a specified surface.

None means presentation is not supported for it.

unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

Creates a PresentationTimestamp using the adapter’s WSI.

Implementors§

§

impl Adapter for Context

§

type A = Api

§

impl Adapter for rerun::external::eframe::egui_wgpu::wgpu::hal::gles::Adapter

§

type A = Api

§

impl Adapter for rerun::external::eframe::egui_wgpu::wgpu::hal::vulkan::Adapter

§

type A = Api