Expand description
Infrastructure for dispatching calls to the appropriate “backend”. The “backends” are:
wgpu_core
: An implementation of the the wgpu api on top of various native graphics APIs.webgpu
: An implementation of the wgpu api which calls WebGPU directly.
The interface traits are all object safe and listed in the InterfaceTypes
trait.
The method for dispatching should optimize well if only one backend is compiled in, as-if there was no dispatching at all.
Macros§
- dispatch_
types 🔒 - Generates Dispatch types for each of the interfaces. Each type is a wrapper around the wgpu_core and webgpu types, and derefs to the appropriate interface trait-object.
- trait_
alias 🔒 - Create a single trait with the given supertraits and a blanket impl for all types that implement them.
Enums§
- Dispatch
Adapter - Dispatch
Bind Group - Dispatch
Bind Group Layout - Dispatch
Blas - Dispatch
Buffer - Dispatch
Buffer Mapped Range - Dispatch
Command Buffer - Dispatch
Command Encoder - Dispatch
Compute Pass - Dispatch
Compute Pipeline - Dispatch
Device - Dispatch
External Texture - Dispatch
Instance - Dispatch
Pipeline Cache - Dispatch
Pipeline Layout - Dispatch
Query Set - Dispatch
Queue - Dispatch
Queue Write Buffer - Dispatch
Render Bundle - Dispatch
Render Bundle Encoder - Dispatch
Render Pass - Dispatch
Render Pipeline - Dispatch
Sampler - Dispatch
Shader Module - Dispatch
Surface - Dispatch
Surface Output Detail - Dispatch
Texture - Dispatch
Texture View - Dispatch
Tlas
Traits§
- Adapter
Interface - AsAny
- Bind
Group Interface - Bind
Group Layout Interface - Blas
Interface - Buffer
Interface - Buffer
Mapped Range Interface - Command
Buffer Interface - Command
Encoder Interface - Common
Traits - Compute
Pass Interface - Compute
Pipeline Interface - Device
Interface - External
Texture Interface - Instance
Interface - Pipeline
Cache Interface - Pipeline
Layout Interface - PopError
Scope Future - Query
SetInterface - Queue
Interface - Queue
Write Buffer Interface - Render
Bundle Encoder Interface - Render
Bundle Interface - Render
Pass Interface - Render
Pipeline Interface - Request
Adapter Future - Request
Device Future - Sampler
Interface - Shader
Compilation Info Future - Shader
Module Interface - Surface
Interface - Surface
Output Detail Interface - Texture
Interface - Texture
View Interface - Tlas
Interface
Type Aliases§
- Blas
Compact Callback send_sync
- BoxDevice
Lost Callback send_sync
- BoxSubmitted
Work Done Callback send_sync
- Buffer
MapCallback send_sync