wgpu_core::hal_api

Trait HalApi

Source
pub trait HalApi:
    Api
    + 'static
    + WasmNotSendSync {
    const VARIANT: Backend;
}

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl HalApi for Empty

Source§

const VARIANT: Backend = Backend::Empty

Source§

impl HalApi for Gles

Available on gles only.
Source§

const VARIANT: Backend = Backend::Gl

Source§

impl HalApi for Vulkan

Available on vulkan only.
Source§

const VARIANT: Backend = Backend::Vulkan