pub trait Api: Clone + Debug + 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: Debug + 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: Debug + WasmNotSend + WasmNotSync
type BindGroup: Debug + WasmNotSend + WasmNotSync
type PipelineLayout: WasmNotSend + WasmNotSync
type ShaderModule: Debug + WasmNotSend + WasmNotSync
type RenderPipeline: WasmNotSend + WasmNotSync
type ComputePipeline: WasmNotSend + WasmNotSync
Object Safety§
This trait is not object safe.
Implementors§
source§impl Api for wgpu_hal::empty::Api
impl Api for wgpu_hal::empty::Api
type Instance = Context
type Surface = Context
type Adapter = Context
type Device = Context
type Queue = Context
type CommandEncoder = Encoder
type CommandBuffer = Resource
type Buffer = Resource
type Texture = Resource
type SurfaceTexture = Resource
type TextureView = Resource
type Sampler = Resource
type QuerySet = Resource
type Fence = Resource
type BindGroupLayout = Resource
type BindGroup = Resource
type PipelineLayout = Resource
type ShaderModule = Resource
type RenderPipeline = Resource
type ComputePipeline = Resource
source§impl Api for wgpu_hal::gles::Api
Available on crate feature gles
only.
impl Api for wgpu_hal::gles::Api
Available on crate feature
gles
only.