pub trait Hal: 'static {
type Context: HalContext<Hal = Self>;
type Texture: HalTexture;
type Fence: HalFence;
const NAME: &'static str;
}Expand description
A rendering backend, as a family of associated types.
Implementors are zero-sized markers; the types they name carry the work.
Required Associated Constants§
Required Associated Types§
type Context: HalContext<Hal = Self>
type Texture: HalTexture
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Hal for GlesHal
impl Hal for GlesHal
Source§type Fence = GlesFence
type Fence = GlesFence
A fence type exists to satisfy the trait, but nothing constructs one: deferred submission is not implemented here, so the default returns unsupported and this is never produced. Naming an uninhabited type is more honest than naming one that could be built but never signals.