pub trait Api: Clone + Debug + Sized {
Show 21 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: WasmNotSendSync + Debug;
type Buffer: Debug + WasmNotSendSync + 'static;
type Texture: Debug + WasmNotSendSync + 'static;
type SurfaceTexture: Debug + WasmNotSendSync + Borrow<Self::Texture>;
type TextureView: Debug + WasmNotSendSync;
type Sampler: Debug + WasmNotSendSync;
type QuerySet: Debug + WasmNotSendSync;
type Fence: Debug + WasmNotSendSync;
type BindGroupLayout: Debug + WasmNotSendSync;
type BindGroup: Debug + WasmNotSendSync;
type PipelineLayout: Debug + WasmNotSendSync;
type ShaderModule: Debug + WasmNotSendSync;
type RenderPipeline: Debug + WasmNotSendSync;
type ComputePipeline: Debug + WasmNotSendSync;
type AccelerationStructure: Debug + WasmNotSendSync + 'static;
}
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: WasmNotSendSync + Debug
type Buffer: Debug + WasmNotSendSync + 'static
type Texture: Debug + WasmNotSendSync + 'static
type SurfaceTexture: Debug + WasmNotSendSync + Borrow<Self::Texture>
type TextureView: Debug + WasmNotSendSync
type Sampler: Debug + WasmNotSendSync
type QuerySet: Debug + WasmNotSendSync
type Fence: Debug + WasmNotSendSync
type BindGroupLayout: Debug + WasmNotSendSync
type BindGroup: Debug + WasmNotSendSync
type PipelineLayout: Debug + WasmNotSendSync
type ShaderModule: Debug + WasmNotSendSync
type RenderPipeline: Debug + WasmNotSendSync
type ComputePipeline: Debug + WasmNotSendSync
type AccelerationStructure: Debug + WasmNotSendSync + 'static
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 AccelerationStructure = 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 gles
only.
impl Api for wgpu_hal::gles::Api
Available on
gles
only.type Instance = Instance
type Surface = Surface
type Adapter = Adapter
type Device = Device
type Queue = Queue
type CommandEncoder = CommandEncoder
type CommandBuffer = CommandBuffer
type Buffer = Buffer
type Texture = Texture
type SurfaceTexture = Texture
type TextureView = TextureView
type Sampler = Sampler
type QuerySet = QuerySet
type Fence = Fence
type AccelerationStructure = ()
type BindGroupLayout = BindGroupLayout
type BindGroup = BindGroup
type PipelineLayout = PipelineLayout
type ShaderModule = ShaderModule
type RenderPipeline = RenderPipeline
type ComputePipeline = ComputePipeline
source§impl Api for wgpu_hal::vulkan::Api
Available on vulkan
only.
impl Api for wgpu_hal::vulkan::Api
Available on
vulkan
only.