pub trait Api: Clone + Sized {
Show 20 associated items
type Instance: Instance<Self>;
type Surface: Surface<Self>;
type Adapter: Adapter<Self>;
type Device: Device<Self>;
type Queue: Queue<Self>;
type CommandEncoder: CommandEncoder<Self>;
type CommandBuffer: WasmNotSend + WasmNotSync + Debug;
type Buffer: Debug + WasmNotSend + WasmNotSync + 'static;
type Texture: Debug + WasmNotSend + WasmNotSync + 'static;
type SurfaceTexture: Debug + WasmNotSend + WasmNotSync + Borrow<Self::Texture>;
type TextureView: Debug + WasmNotSend + WasmNotSync;
type Sampler: Debug + WasmNotSend + WasmNotSync;
type QuerySet: Debug + WasmNotSend + WasmNotSync;
type Fence: Debug + WasmNotSend + WasmNotSync;
type BindGroupLayout: WasmNotSend + WasmNotSync;
type BindGroup: Debug + WasmNotSend + WasmNotSync;
type PipelineLayout: WasmNotSend + WasmNotSync;
type ShaderModule: Debug + WasmNotSend + WasmNotSync;
type RenderPipeline: WasmNotSend + WasmNotSync;
type ComputePipeline: WasmNotSend + WasmNotSync;
}
Required Associated Types§
type Instance: Instance<Self>
type Surface: Surface<Self>
type Adapter: Adapter<Self>
type Device: Device<Self>
type Queue: Queue<Self>
type CommandEncoder: CommandEncoder<Self>
type CommandBuffer: WasmNotSend + WasmNotSync + Debug
type Buffer: Debug + WasmNotSend + WasmNotSync + 'static
type Texture: Debug + WasmNotSend + WasmNotSync + 'static
type SurfaceTexture: Debug + WasmNotSend + WasmNotSync + Borrow<Self::Texture>
type TextureView: Debug + WasmNotSend + WasmNotSync
type Sampler: Debug + WasmNotSend + WasmNotSync
type QuerySet: Debug + WasmNotSend + WasmNotSync
type Fence: Debug + WasmNotSend + WasmNotSync
type BindGroupLayout: WasmNotSend + WasmNotSync
type BindGroup: Debug + WasmNotSend + WasmNotSync
type PipelineLayout: WasmNotSend + WasmNotSync
type ShaderModule: Debug + WasmNotSend + WasmNotSync
type RenderPipeline: WasmNotSend + WasmNotSync
type ComputePipeline: WasmNotSend + WasmNotSync
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.