Trait wgpu_hal::Api

source ·
pub trait Api: Clone + Debug + Sized {
Show 21 associated items type Instance: Instance<A = Self>; type Surface: Surface<A = Self>; type Adapter: Adapter<A = Self>; type Device: Device<A = Self>; type Queue: Queue<A = Self>; type CommandEncoder: CommandEncoder<A = 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§

source

type Instance: Instance<A = Self>

source

type Surface: Surface<A = Self>

source

type Adapter: Adapter<A = Self>

source

type Device: Device<A = Self>

source

type Queue: Queue<A = Self>

source

type CommandEncoder: CommandEncoder<A = Self>

source

type CommandBuffer: WasmNotSendSync + Debug

This API’s command buffer type.

The only thing you can do with CommandBuffers is build them with a CommandEncoder and then pass them to Queue::submit for execution, or destroy them by passing them to CommandEncoder::reset_all.

source

type Buffer: Debug + WasmNotSendSync + 'static

source

type Texture: Debug + WasmNotSendSync + 'static

source

type SurfaceTexture: Debug + WasmNotSendSync + Borrow<Self::Texture>

source

type TextureView: Debug + WasmNotSendSync

source

type Sampler: Debug + WasmNotSendSync

source

type QuerySet: Debug + WasmNotSendSync

source

type Fence: Debug + WasmNotSendSync

source

type BindGroupLayout: Debug + WasmNotSendSync

source

type BindGroup: Debug + WasmNotSendSync

source

type PipelineLayout: Debug + WasmNotSendSync

source

type ShaderModule: Debug + WasmNotSendSync

source

type RenderPipeline: Debug + WasmNotSendSync

source

type ComputePipeline: Debug + WasmNotSendSync

source

type AccelerationStructure: Debug + WasmNotSendSync + 'static

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Api for wgpu_hal::empty::Api

source§

impl Api for wgpu_hal::gles::Api

Available on gles only.
source§

impl Api for wgpu_hal::vulkan::Api

Available on vulkan only.